[Xfce4-commits] [xfce/xfce4-settings] 01/01: Resolve gtk_menu_popup deprecation in GTK+ 3.22
noreply at xfce.org
noreply at xfce.org
Wed Mar 1 11:29:30 CET 2017
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository xfce/xfce4-settings.
commit e5a9de5ea43b6b2c936480070b3e5f47dfe430d9
Author: Igor <f2404 at yandex.ru>
Date: Wed Mar 1 13:29:25 2017 +0300
Resolve gtk_menu_popup deprecation in GTK+ 3.22
---
xfce4-settings-editor/xfce-settings-editor-box.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xfce4-settings-editor/xfce-settings-editor-box.c b/xfce4-settings-editor/xfce-settings-editor-box.c
index bf5f0f3..9b2a271 100644
--- a/xfce4-settings-editor/xfce-settings-editor-box.c
+++ b/xfce4-settings-editor/xfce-settings-editor-box.c
@@ -1040,9 +1040,13 @@ xfce_settings_editor_box_channel_menu (XfceSettingsEditorBox *self)
G_CALLBACK (xfce_settings_editor_box_load_channels), self);
gtk_widget_show (mi);
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
+#else
gtk_menu_popup (GTK_MENU (menu),
NULL, NULL, NULL, NULL, 3,
gtk_get_current_event_time ());
+#endif
return TRUE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list