Skip to content
Permalink
Browse files

disk-usage-analyzer: replace deprecated gtk_menu_popup

  • Loading branch information...
raveit65 committed Sep 13, 2018
1 parent 360512a commit 1a5e0dd111c30a5ead53f42984e212c7634c5428
Showing with 4 additions and 5 deletions.
  1. +2 −2 baobab/src/baobab-utils.c
  2. +2 −3 baobab/src/baobab.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
@@ -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);
}

0 comments on commit 1a5e0dd

Please sign in to comment.
You can’t perform that action at this time.