Skip to content

Commit

Permalink
sticknotes: replace deprecated gtk_menu_popup
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Jul 8, 2018
1 parent dc720b3 commit d3bf8fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions stickynotes/stickynotes_callbacks.c
Expand Up @@ -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;
Expand Down

0 comments on commit d3bf8fd

Please sign in to comment.