aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-editor.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-23 20:42:03 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-23 20:42:03 +0800
commit333f3539fef0bd52d338855cbe3b82f3d53a453a (patch)
tree65b3b43b85d4dd667c802fd72e40387017d431e3 /src/bookmarks/ephy-bookmarks-editor.c
parent7cab7b7f5d4605a77b804c0e6cccc826e7bb311d (diff)
downloadgsoc2013-epiphany-333f3539fef0bd52d338855cbe3b82f3d53a453a.tar
gsoc2013-epiphany-333f3539fef0bd52d338855cbe3b82f3d53a453a.tar.gz
gsoc2013-epiphany-333f3539fef0bd52d338855cbe3b82f3d53a453a.tar.bz2
gsoc2013-epiphany-333f3539fef0bd52d338855cbe3b82f3d53a453a.tar.lz
gsoc2013-epiphany-333f3539fef0bd52d338855cbe3b82f3d53a453a.tar.xz
gsoc2013-epiphany-333f3539fef0bd52d338855cbe3b82f3d53a453a.tar.zst
gsoc2013-epiphany-333f3539fef0bd52d338855cbe3b82f3d53a453a.zip
Just use the popup_menu signal. Fixes bug #150830.
2004-08-23 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_key_press_cb), (ephy_node_view_button_press_cb), (ephy_node_view_class_init): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_show_popup_cb), (keyword_node_show_popup_cb), (ephy_bookmarks_editor_construct): * src/ephy-history-window.c: (ephy_history_window_show_popup_cb), (ephy_history_window_construct), (ephy_history_window_dispose): Just use the popup_menu signal. Fixes bug #150830.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 5d80ec2aa..e61bd17c8 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -1129,7 +1129,7 @@ remove_focus_monitor (EphyBookmarksEditor *editor, GtkWidget *widget)
editor);
}
-static void
+static gboolean
ephy_bookmarks_editor_show_popup_cb (GtkWidget *view,
EphyBookmarksEditor *editor)
{
@@ -1139,6 +1139,8 @@ ephy_bookmarks_editor_show_popup_cb (GtkWidget *view,
"/EphyBookmarkEditorPopup");
gtk_menu_popup (GTK_MENU (widget), NULL, NULL, NULL, NULL, 2,
gtk_get_current_event_time ());
+
+ return TRUE;
}
static void
@@ -1221,7 +1223,7 @@ keyword_node_selected_cb (EphyNodeView *view,
}
}
-static void
+static gboolean
keyword_node_show_popup_cb (GtkWidget *view, EphyBookmarksEditor *editor)
{
GtkWidget *widget;
@@ -1230,6 +1232,8 @@ keyword_node_show_popup_cb (GtkWidget *view, EphyBookmarksEditor *editor)
"/EphyBookmarkKeywordPopup");
gtk_menu_popup (GTK_MENU (widget), NULL, NULL, NULL, NULL, 2,
gtk_get_current_event_time ());
+
+ return TRUE;
}
static void
@@ -1526,7 +1530,7 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
G_CALLBACK (node_dropped_cb),
editor);
g_signal_connect (G_OBJECT (key_view),
- "show_popup",
+ "popup_menu",
G_CALLBACK (keyword_node_show_popup_cb),
editor);
@@ -1587,7 +1591,7 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
G_CALLBACK (ephy_bookmarks_editor_node_activated_cb),
editor);
g_signal_connect (G_OBJECT (bm_view),
- "show_popup",
+ "popup_menu",
G_CALLBACK (ephy_bookmarks_editor_show_popup_cb),
editor);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (bm_view));