summaryrefslogtreecommitdiff
path: root/src/gui/editor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-28 16:51:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-28 16:51:16 (GMT)
commit16ce1225f1faf51d7cb8eba4f7fb8b5ec2fac2a2 (patch)
treebd21d3b992f694c6402bda0864be37a1fc71668a /src/gui/editor.c
parente0dac33fc96a338e13547af3edfc5d4e914b67a2 (diff)
Replaced all calls to the deprecated gtk_menu_popup() function.
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r--src/gui/editor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index 5bab5d3..d042acd 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -1503,9 +1503,7 @@ static void on_dock_menu_request(GtkDockStation *station, GtkWidget *button, GOb
/* Affichage du menu */
- gtk_menu_popup(GTK_MENU(menu), NULL, NULL,
- (GtkMenuPositionFunc)attach_popup_menu_to_widget, button,
- 0, gtk_get_current_event_time());
+ gtk_menu_popup_at_widget(GTK_MENU(menu), button, GDK_GRAVITY_SOUTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL);
}