Skip to content

Commit 1a5e0dd

Browse files
author
raveit65
committed
disk-usage-analyzer: replace deprecated gtk_menu_popup
1 parent 360512a commit 1a5e0dd

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

baobab/src/baobab-utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ popupmenu_list (GtkTreePath *path, GdkEventButton *event, gboolean can_trash)
371371
}
372372

373373
gtk_widget_show_all (pmenu);
374-
gtk_menu_popup (GTK_MENU (pmenu), NULL, NULL, NULL, NULL,
375-
event->button, event->time);
374+
gtk_menu_popup_at_pointer (GTK_MENU (pmenu),
375+
(const GdkEvent*) event);
376376
}
377377

378378
void

baobab/src/baobab.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,8 @@ on_chart_button_release (BaobabChart *chart,
10021002
baobab_chart_can_zoom_out (baobab.current_chart));
10031003

10041004
/* show the menu */
1005-
gtk_menu_popup (GTK_MENU (menu->widget),
1006-
NULL, NULL, NULL, NULL,
1007-
event->button, event->time);
1005+
gtk_menu_popup_at_pointer (GTK_MENU (menu->widget),
1006+
(const GdkEvent*) event);
10081007

10091008
gtk_tree_path_free (root_path);
10101009
}

0 commit comments

Comments
 (0)