summaryrefslogtreecommitdiff
path: root/baobab
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-09-13 14:22:04 +0200
committerraveit65 <[email protected]>2018-09-23 16:32:48 +0200
commit1a5e0dd111c30a5ead53f42984e212c7634c5428 (patch)
treeef2b7c227d9b2f62136fd21e18de753461a886d5 /baobab
parent360512a5afa4d72d33fcfb5df3c81ac53ff373ea (diff)
downloadmate-utils-1a5e0dd111c30a5ead53f42984e212c7634c5428.tar.bz2
mate-utils-1a5e0dd111c30a5ead53f42984e212c7634c5428.tar.xz
disk-usage-analyzer: replace deprecated gtk_menu_popup
Diffstat (limited to 'baobab')
-rw-r--r--baobab/src/baobab-utils.c4
-rw-r--r--baobab/src/baobab.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/baobab/src/baobab-utils.c b/baobab/src/baobab-utils.c
index 1da18c12..fb68924b 100644
--- a/baobab/src/baobab-utils.c
+++ b/baobab/src/baobab-utils.c
@@ -371,8 +371,8 @@ popupmenu_list (GtkTreePath *path, GdkEventButton *event, gboolean can_trash)
}
gtk_widget_show_all (pmenu);
- gtk_menu_popup (GTK_MENU (pmenu), NULL, NULL, NULL, NULL,
- event->button, event->time);
+ gtk_menu_popup_at_pointer (GTK_MENU (pmenu),
+ (const GdkEvent*) event);
}
void
diff --git a/baobab/src/baobab.c b/baobab/src/baobab.c
index 95b9f3f6..92775bea 100644
--- a/baobab/src/baobab.c
+++ b/baobab/src/baobab.c
@@ -1002,9 +1002,8 @@ on_chart_button_release (BaobabChart *chart,
baobab_chart_can_zoom_out (baobab.current_chart));
/* show the menu */
- gtk_menu_popup (GTK_MENU (menu->widget),
- NULL, NULL, NULL, NULL,
- event->button, event->time);
+ gtk_menu_popup_at_pointer (GTK_MENU (menu->widget),
+ (const GdkEvent*) event);
gtk_tree_path_free (root_path);
}