Skip to content

Commit

Permalink
disk-usage-analyzer: replace deprecated gtk_menu_popup
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Sep 23, 2018
1 parent 360512a commit 1a5e0dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions baobab/src/baobab-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions baobab/src/baobab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1a5e0dd

Please sign in to comment.