From b79a2ee8d325de52aa792123256a9d70a1ef4ee9 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 14 Jan 2005 00:30:41 +0000 Subject: Renamed Remove action on bookmarksbar context menu. Fixes bug #162132. 2005-01-14 Christian Persch * src/bookmarks/ephy-bookmark-action.c: (show_context_menu): * src/bookmarks/ephy-topic-action.c: (show_context_menu): Renamed Remove action on bookmarksbar context menu. Fixes bug #162132. --- ChangeLog | 7 +++++++ src/bookmarks/ephy-bookmark-action.c | 7 +++++-- src/bookmarks/ephy-topic-action.c | 7 +++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 679a7b64e..ae9d24c56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-01-14 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (show_context_menu): + * src/bookmarks/ephy-topic-action.c: (show_context_menu): + + Renamed Remove action on bookmarksbar context menu. Fixes bug #162132. + 2005-01-14 Christian Persch * embed/Makefile.am: diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index e032b91f6..ea4e96e40 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -536,7 +536,7 @@ show_context_menu (EphyBookmarkAction *action, GdkEventButton *event, GtkMenuPositionFunc func) { - GtkWidget *menu, *item; + GtkWidget *menu, *item, *image; gboolean last; menu = gtk_menu_new (); @@ -568,8 +568,11 @@ show_context_menu (EphyBookmarkAction *action, gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); - item = gtk_image_menu_item_new_from_stock (GTK_STOCK_REMOVE, NULL); + item = gtk_image_menu_item_new_with_mnemonic (_("_Remove from Toolbar")); gtk_widget_show (item); + image = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); + gtk_widget_show (image); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); g_signal_connect (item, "activate", G_CALLBACK (remove_activate_cb), proxy); diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index e98e0a5c9..bb888f1ac 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -755,7 +755,7 @@ show_context_menu (EphyTopicAction *action, GdkEventButton *event, GtkMenuPositionFunc func) { - GtkWidget *menu, *item; + GtkWidget *menu, *item, *image; gboolean last; menu = gtk_menu_new (); @@ -767,8 +767,11 @@ show_context_menu (EphyTopicAction *action, gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); - item = gtk_image_menu_item_new_from_stock (GTK_STOCK_REMOVE, NULL); + item = gtk_image_menu_item_new_with_mnemonic (_("_Remove from Toolbar")); gtk_widget_show (item); + image = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); + gtk_widget_show (image); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); g_signal_connect (item, "activate", G_CALLBACK (remove_activate_cb), proxy); -- cgit v1.2.3