From 9d03728737c3ac793ac7a8d63398dad4053be7f9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 15 Sep 2004 08:04:46 +0000 Subject: Add api to show a context menu. Useful to make distinction between key and 2004-09-15 Marco Pesenti Gritti * lib/widgets/ephy-node-view.c: (ephy_node_view_add_toggle), (ephy_node_view_popup): * lib/widgets/ephy-node-view.h: Add api to show a context menu. Useful to make distinction between key and mouse events. * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_show_popup_cb), (keyword_node_show_popup_cb): * src/ephy-history-window.c: (ephy_history_window_show_popup_cb): Use it. Fix #152431 --- src/bookmarks/ephy-bookmarks-editor.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 3a6cd2db0..71ca3934a 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -1137,9 +1137,7 @@ ephy_bookmarks_editor_show_popup_cb (GtkWidget *view, widget = gtk_ui_manager_get_widget (editor->priv->ui_merge, "/EphyBookmarkEditorPopup"); - gtk_menu_popup (GTK_MENU (widget), NULL, NULL, - ephy_gui_menu_position_tree_selection, view, 2, - gtk_get_current_event_time ()); + ephy_node_view_popup (EPHY_NODE_VIEW (view), widget); return TRUE; } @@ -1229,9 +1227,7 @@ keyword_node_show_popup_cb (GtkWidget *view, EphyBookmarksEditor *editor) widget = gtk_ui_manager_get_widget (editor->priv->ui_merge, "/EphyBookmarkKeywordPopup"); - gtk_menu_popup (GTK_MENU (widget), NULL, NULL, - ephy_gui_menu_position_tree_selection, view, 2, - gtk_get_current_event_time ()); + ephy_node_view_popup (EPHY_NODE_VIEW (view), widget); return TRUE; } -- cgit v1.2.3