diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-09-24 20:45:45 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-09-24 20:45:45 +0800 |
commit | da6333c06e51b7c4447d6d534d301c3f728679d9 (patch) | |
tree | 6bb3fe88d45e9f75bece2938f6b2396d58932e81 /src/bookmarks/ephy-bookmark-action.c | |
parent | 3844f2dc783a6e505e7f114bc1a747e5c040021c (diff) | |
download | gsoc2013-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-bookmark-action.c')
-rw-r--r-- | src/bookmarks/ephy-bookmark-action.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index 96c07822d..f805109d4 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -484,17 +484,19 @@ ephy_bookmark_action_class_init (EphyBookmarkActionClass *class) static void sync_bookmark_properties (GtkAction *action, EphyNode *bmk) { - const char *title, *location, *icon; + const char *tmp, *location, *icon; + char *title; gboolean smart_url; icon = ephy_node_get_property_string (bmk, EPHY_NODE_BMK_PROP_ICON); - title = ephy_node_get_property_string - (bmk, EPHY_NODE_BMK_PROP_TITLE); location = ephy_node_get_property_string (bmk, EPHY_NODE_BMK_PROP_LOCATION); smart_url = ephy_node_get_property_boolean (bmk, EPHY_NODE_BMK_PROP_HAS_SMART_ADDRESS); + tmp = ephy_node_get_property_string + (bmk, EPHY_NODE_BMK_PROP_TITLE); + title = ephy_string_double_underscores (tmp); g_object_set (action, "label", title, @@ -502,6 +504,8 @@ sync_bookmark_properties (GtkAction *action, EphyNode *bmk) "smarturl", smart_url, "icon", icon, NULL); + + g_free (title); } static void |