Skip to content

Commit d3bf8fd

Browse files
author
raveit65
committed
sticknotes: replace deprecated gtk_menu_popup
1 parent dc720b3 commit d3bf8fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stickynotes/stickynotes_callbacks.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ stickynote_show_popup_menu (GtkWidget *widget, GdkEventButton *event, GtkWidget
9595
{
9696
if (event->type == GDK_BUTTON_PRESS && event->button == 3)
9797
{
98-
gtk_menu_popup (GTK_MENU (popup_menu),
99-
NULL, NULL,
100-
NULL, NULL,
101-
event->button, event->time);
98+
gtk_menu_popup_at_pointer (GTK_MENU (popup_menu),
99+
(const GdkEvent*) event);
102100
}
103101

104102
return FALSE;

0 commit comments

Comments
 (0)