Skip to content
Permalink
Browse files

interface: avoid deprecated gtk_menu_popup

  • Loading branch information...
raveit65 authored and sc0w committed Aug 26, 2018
1 parent 7ecf16d commit 8b1c92d4155aabf886f792b0eb11bd76ed8cf4bd
Showing with 1 addition and 14 deletions.
  1. +1 −14 src/interface.cpp
@@ -758,20 +758,7 @@ create_main_window (ProcData *procdata)
void
do_popup_menu (ProcData *procdata, GdkEventButton *event)
{
guint button;
guint32 event_time;

if (event) {
button = event->button;
event_time = event->time;
}
else {
button = 0;
event_time = gtk_get_current_event_time ();
}

gtk_menu_popup (GTK_MENU (procdata->popup_menu), NULL, NULL,
NULL, NULL, button, event_time);
gtk_menu_popup_at_pointer (GTK_MENU (procdata->popup_menu), NULL);
}

void

0 comments on commit 8b1c92d

Please sign in to comment.
You can’t perform that action at this time.