From d3bf8fd44c54816e66216517dfdf6b8496536677 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 6 Jul 2018 14:10:38 +0200 Subject: sticknotes: replace deprecated gtk_menu_popup --- stickynotes/stickynotes_callbacks.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'stickynotes') diff --git a/stickynotes/stickynotes_callbacks.c b/stickynotes/stickynotes_callbacks.c index bd6a4577..45a01ad5 100644 --- a/stickynotes/stickynotes_callbacks.c +++ b/stickynotes/stickynotes_callbacks.c @@ -95,10 +95,8 @@ stickynote_show_popup_menu (GtkWidget *widget, GdkEventButton *event, GtkWidget { if (event->type == GDK_BUTTON_PRESS && event->button == 3) { - gtk_menu_popup (GTK_MENU (popup_menu), - NULL, NULL, - NULL, NULL, - event->button, event->time); + gtk_menu_popup_at_pointer (GTK_MENU (popup_menu), + (const GdkEvent*) event); } return FALSE; -- cgit v1.2.1