diff options
author | raveit65 <[email protected]> | 2018-08-26 14:56:18 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2018-11-14 11:22:12 +0100 |
commit | 8b1c92d4155aabf886f792b0eb11bd76ed8cf4bd (patch) | |
tree | 6ab45247f1bbbcd7d7e8f112bc6aa2fda749b744 /src/interface.cpp | |
parent | 7ecf16d43388b4547126cd0b1d441f29f9be27c5 (diff) | |
download | mate-system-monitor-8b1c92d4155aabf886f792b0eb11bd76ed8cf4bd.tar.bz2 mate-system-monitor-8b1c92d4155aabf886f792b0eb11bd76ed8cf4bd.tar.xz |
interface: avoid deprecated gtk_menu_popup
Diffstat (limited to 'src/interface.cpp')
-rw-r--r-- | src/interface.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index 7113e6a..f7dbe84 100644 --- a/src/interface.cpp +++ b/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 |