summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/editor.c4
-rw-r--r--src/gui/panels/bookmarks.c2
-rw-r--r--src/gui/panels/regedit.c2
-rw-r--r--src/gui/panels/strings.c2
4 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index 5bab5d3..d042acd 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -1503,9 +1503,7 @@ static void on_dock_menu_request(GtkDockStation *station, GtkWidget *button, GOb
/* Affichage du menu */
- gtk_menu_popup(GTK_MENU(menu), NULL, NULL,
- (GtkMenuPositionFunc)attach_popup_menu_to_widget, button,
- 0, gtk_get_current_event_time());
+ gtk_menu_popup_at_widget(GTK_MENU(menu), button, GDK_GRAVITY_SOUTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL);
}
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;
}