[Xfce4-commits] [apps/xfce4-terminal] 01/01: Use gtk_widget_set_focus_on_click() instead of deprecated setters
noreply at xfce.org
noreply at xfce.org
Thu Jun 16 12:54:29 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 964e1394c611c7056f9b5c9c1036df2abc06c9a0
Author: Igor <f2404 at yandex.ru>
Date: Thu Jun 16 13:53:22 2016 +0300
Use gtk_widget_set_focus_on_click() instead of deprecated setters
Keep the old ones for gtk versions less than 3.20
---
terminal/terminal-window-dropdown.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/terminal/terminal-window-dropdown.c b/terminal/terminal-window-dropdown.c
index 6aae86b..acd88f1 100644
--- a/terminal/terminal-window-dropdown.c
+++ b/terminal/terminal-window-dropdown.c
@@ -273,7 +273,11 @@ terminal_window_dropdown_init (TerminalWindowDropdown *dropdown)
gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
gtk_widget_set_tooltip_text (button, _("Keep window open when it loses focus"));
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+#if GTK_CHECK_VERSION (3,20,0)
+ gtk_widget_set_focus_on_click (button, FALSE);
+#else
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
+#endif
gtk_widget_show (button);
g_object_get (G_OBJECT (window->preferences), "dropdown-keep-open-default", &keep_open, NULL);
@@ -289,7 +293,11 @@ terminal_window_dropdown_init (TerminalWindowDropdown *dropdown)
gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
gtk_widget_set_tooltip_text (button, gtk_action_get_tooltip (action));
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+#if GTK_CHECK_VERSION (3,20,0)
+ gtk_widget_set_focus_on_click (button, FALSE);
+#else
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
+#endif
g_signal_connect_swapped (G_OBJECT (button), "clicked",
G_CALLBACK (gtk_action_activate), action);
gtk_widget_show (button);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list