summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-28 16:51:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-28 16:51:16 (GMT)
commit16ce1225f1faf51d7cb8eba4f7fb8b5ec2fac2a2 (patch)
treebd21d3b992f694c6402bda0864be37a1fc71668a /src/gui/panels
parente0dac33fc96a338e13547af3edfc5d4e914b67a2 (diff)
Replaced all calls to the deprecated gtk_menu_popup() function.
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/bookmarks.c2
-rw-r--r--src/gui/panels/regedit.c2
-rw-r--r--src/gui/panels/strings.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/panels/bookmarks.c b/src/gui/panels/bookmarks.c
index 5eb018b..9b360f3 100644
--- a/src/gui/panels/bookmarks.c
+++ b/src/gui/panels/bookmarks.c
@@ -1071,7 +1071,7 @@ static gboolean on_button_press_over_bookmarks(GtkWidget *widget, GdkEventButton
break;
case 3:
- gtk_menu_popup(panel->menu, NULL, NULL, NULL, NULL, event->button, event->time);
+ gtk_menu_popup_at_pointer(panel->menu, (GdkEvent *)event);
break;
}
diff --git a/src/gui/panels/regedit.c b/src/gui/panels/regedit.c
index 501bd2f..0975c9e 100644
--- a/src/gui/panels/regedit.c
+++ b/src/gui/panels/regedit.c
@@ -911,7 +911,7 @@ static bool is_param_filtered(GRegeditPanel *panel, const char *name)
static gboolean on_button_press_over_params(GtkWidget *widget, GdkEventButton *event, GRegeditPanel *panel)
{
if (event->button == 3)
- gtk_menu_popup(panel->menu, NULL, NULL, NULL, NULL, event->button, event->time);
+ gtk_menu_popup_at_pointer(panel->menu, (GdkEvent *)event);
return FALSE;
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index 60c53f4..8e7c702 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -846,7 +846,7 @@ static gboolean on_button_event_over_strings(GtkWidget *widget, GdkEventButton *
case 3:
if (event->type == GDK_BUTTON_RELEASE)
- gtk_menu_popup(panel->menu, NULL, NULL, NULL, NULL, event->button, event->time);
+ gtk_menu_popup_at_pointer(panel->menu, (GdkEvent *)event);
break;
}