[Epiphany] [patch] topics context menu



adds remove topic and rename topic to the context menu. This whole ui 
still needs a little love, but this is just to start off with.

ok to commit?

dave
Index: data/ui/epiphany-bookmark-editor-ui.xml.in
===================================================================
RCS file: /cvs/gnome/epiphany/data/ui/epiphany-bookmark-editor-ui.xml.in,v
retrieving revision 1.6
diff -u -p -r1.6 epiphany-bookmark-editor-ui.xml.in
--- data/ui/epiphany-bookmark-editor-ui.xml.in	24 Mar 2003 14:08:24 -0000	1.6
+++ data/ui/epiphany-bookmark-editor-ui.xml.in	25 Mar 2003 03:55:15 -0000
@@ -32,6 +32,11 @@
 	<separator name="BookmarksPopupSep2"/>
 	<menuitem name="BMKProperties" verb="Properties"/>
 </popup>
-	
+
+<popup name="EphyBookmarkKeywordPopup" verb="FakeToplevel">
+	<menuitem name="EditRenameTopic" verb="RenameTopic"/>
+	<menuitem name="FileRemoveTopic" verb="RemoveTopic"/>
+</popup>
+
 </popups>
 </Root>
Index: src/bookmarks/ephy-bookmarks-editor.c
===================================================================
RCS file: /cvs/gnome/epiphany/src/bookmarks/ephy-bookmarks-editor.c,v
retrieving revision 1.29
diff -u -p -r1.29 ephy-bookmarks-editor.c
--- src/bookmarks/ephy-bookmarks-editor.c	24 Mar 2003 20:56:19 -0000	1.29
+++ src/bookmarks/ephy-bookmarks-editor.c	25 Mar 2003 03:55:23 -0000
@@ -484,6 +484,18 @@ keyword_node_selected_cb (EphyNodeView *
 }
 
 static void
+keyword_node_show_popup_cb (GtkWidget *view,
+				     EphyBookmarksEditor *editor)
+{
+	GtkWidget *widget;
+
+	widget = egg_menu_merge_get_widget (editor->priv->ui_merge,
+					    "/popups/EphyBookmarkKeywordPopup");
+	gtk_menu_popup (GTK_MENU (widget), NULL, NULL, NULL, NULL, 2,
+			gtk_get_current_event_time ());
+}
+
+static void
 search_entry_changed_cb (GtkWidget *entry, EphyBookmarksEditor *editor)
 {
 	char *search_text;
@@ -630,10 +642,13 @@ ephy_bookmarks_editor_construct (EphyBoo
 			  "node_selected",
 			  G_CALLBACK (keyword_node_selected_cb),
 			  editor);
+	g_signal_connect (G_OBJECT (key_view),
+			  "show_popup",
+			  G_CALLBACK (keyword_node_show_popup_cb),
+			  editor);
 
 	vbox = gtk_vbox_new (FALSE, 6);
	gtk_box_pack_start (GTK_BOX (hbox),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]