aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-topic-action.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-09-24 20:45:45 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-09-24 20:45:45 +0800
commitda6333c06e51b7c4447d6d534d301c3f728679d9 (patch)
tree6bb3fe88d45e9f75bece2938f6b2396d58932e81 /src/bookmarks/ephy-topic-action.c
parent3844f2dc783a6e505e7f114bc1a747e5c040021c (diff)
downloadgsoc2013-epiphany-da6333c06e51b7c4447d6d534d301c3f728679d9.tar
gsoc2013-epiphany-da6333c06e51b7c4447d6d534d301c3f728679d9.tar.gz
gsoc2013-epiphany-da6333c06e51b7c4447d6d534d301c3f728679d9.tar.bz2
gsoc2013-epiphany-da6333c06e51b7c4447d6d534d301c3f728679d9.tar.lz
gsoc2013-epiphany-da6333c06e51b7c4447d6d534d301c3f728679d9.tar.xz
gsoc2013-epiphany-da6333c06e51b7c4447d6d534d301c3f728679d9.tar.zst
gsoc2013-epiphany-da6333c06e51b7c4447d6d534d301c3f728679d9.zip
Do not use _ as accellerators in bookmarks menus.
2003-09-24 Marco Pesenti Gritti <marco@gnome.org> * lib/ephy-string.c: (ephy_string_double_underscores): * lib/ephy-string.h: * src/bookmarks/ephy-bookmark-action.c: (sync_bookmark_properties): * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_rebuild): * src/bookmarks/ephy-topic-action.c: (create_menu_item), (sync_topic_properties): Do not use _ as accellerators in bookmarks menus.
Diffstat (limited to 'src/bookmarks/ephy-topic-action.c')
-rw-r--r--src/bookmarks/ephy-topic-action.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c
index 6de5ce28f..9d2d049a0 100644
--- a/src/bookmarks/ephy-topic-action.c
+++ b/src/bookmarks/ephy-topic-action.c
@@ -459,18 +459,21 @@ create_menu_item (GtkAction *action)
{
GtkWidget *menu, *menu_item;
GValue value = { 0, };
- const char *label_text;
+ const char *tmp;
+ char *label_text;
g_value_init (&value, G_TYPE_STRING);
g_object_get_property (G_OBJECT (action), "label", &value);
- label_text = g_value_get_string (&value);
+ tmp = g_value_get_string (&value);
+ label_text = ephy_string_double_underscores (tmp);
LOG ("create_menu_item action %p", action)
menu_item = gtk_menu_item_new_with_label (label_text);
g_value_unset (&value);
+ g_free (label_text);
menu = build_menu (EPHY_TOPIC_ACTION (action));
gtk_widget_show (menu);
@@ -608,7 +611,8 @@ ephy_topic_action_class_init (EphyTopicActionClass *class)
static void
sync_topic_properties (GtkAction *action, EphyNode *bmk)
{
- const char *title;
+ const char *tmp;
+ char *title;
int priority;
priority = ephy_node_get_property_int
@@ -616,15 +620,19 @@ sync_topic_properties (GtkAction *action, EphyNode *bmk)
if (priority == EPHY_NODE_ALL_PRIORITY)
{
- title = _("Bookmarks");
+ tmp = _("Bookmarks");
}
else
{
- title = ephy_node_get_property_string
+ tmp = ephy_node_get_property_string
(bmk, EPHY_NODE_KEYWORD_PROP_NAME);
}
+ title = ephy_string_double_underscores (tmp);
+
g_object_set (action, "label", title, NULL);
+
+ g_free (title);
}
static void