[Xfce4-commits] [xfce/xfce4-appfinder] 01/01: Use gtk_menu_popup to support gtk 3.20
noreply at xfce.org
noreply at xfce.org
Thu Nov 2 21:35:19 CET 2017
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-appfinder.
commit b3dd6e547011793a3237c202e04d577d95943780
Author: Andre Miranda <andreldm at xfce.org>
Date: Thu Nov 2 17:35:11 2017 -0300
Use gtk_menu_popup to support gtk 3.20
---
src/appfinder-window.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/appfinder-window.c b/src/appfinder-window.c
index 01919c1..2dcd432 100644
--- a/src/appfinder-window.c
+++ b/src/appfinder-window.c
@@ -1093,7 +1093,14 @@ xfce_appfinder_window_popup_menu (GtkWidget *view,
G_CALLBACK (xfce_appfinder_window_popup_menu_hide), window);
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