[Xfce4-commits] [xfce/xfce4-panel] 69/73: Fix incomplete replacement of gtk_button_set_focus_on_click

noreply at xfce.org noreply at xfce.org
Sun Feb 26 16:34:50 CET 2017


This is an automated email from the git hooks/post-receive script.

andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 66855dab46a802a2e9884d321c19e2e7662f527f
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Oct 31 20:19:55 2016 +0100

    Fix incomplete replacement of gtk_button_set_focus_on_click
---
 libxfce4panel/xfce-panel-convenience.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libxfce4panel/xfce-panel-convenience.c b/libxfce4panel/xfce-panel-convenience.c
index 10c9b31..efcaf6f 100644
--- a/libxfce4panel/xfce-panel-convenience.c
+++ b/libxfce4panel/xfce-panel-convenience.c
@@ -60,7 +60,11 @@ xfce_panel_create_button (void)
   gtk_widget_set_can_default (GTK_WIDGET (button), FALSE);
   gtk_widget_set_can_focus (GTK_WIDGET (button), FALSE);
   gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+#if GTK_CHECK_VERSION (3, 0, 0)
+  gtk_widget_set_focus_on_click (GTK_BUTTON (button), FALSE);
+#else
   gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
+#endif
   gtk_widget_set_name (button, "xfce-panel-button");
 
   return button;
@@ -84,7 +88,11 @@ xfce_panel_create_toggle_button (void)
   gtk_widget_set_can_default (GTK_WIDGET (button), FALSE);
   gtk_widget_set_can_focus (GTK_WIDGET (button), FALSE);
   gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+#if GTK_CHECK_VERSION (3, 0, 0)
   gtk_widget_set_focus_on_click (GTK_BUTTON (button), FALSE);
+#else
+  gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
+#endif
   gtk_widget_set_name (button, "xfce-panel-toggle-button");
 
   return button;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list