[Xfce4-commits] [xfce/garcon] 01/01: test: fix gtk_menu_popup being deprecated
noreply at xfce.org
noreply at xfce.org
Sat Mar 4 03:20:18 CET 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/garcon.
commit c4c4a8f02ffa4f9bd9517c7c152131e49be54ffb
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Wed Mar 1 15:44:42 2017 +0300
test: fix gtk_menu_popup being deprecated
---
tests/test-display-menu.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/test-display-menu.c b/tests/test-display-menu.c
index b354693..c94868c 100644
--- a/tests/test-display-menu.c
+++ b/tests/test-display-menu.c
@@ -49,7 +49,11 @@ show_menu (GtkButton *button,
GtkWidget *menu)
{
/* Display the menu */
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_menu_popup_at_widget (GTK_MENU (menu), GTK_WIDGET (button), GDK_GRAVITY_EAST, GDK_GRAVITY_SOUTH, gtk_get_current_event ());
+#else
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time ());
+#endif
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list