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-bookmarks-menu.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-bookmarks-menu.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-menu.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks-menu.c b/src/bookmarks/ephy-bookmarks-menu.c index 6c1b2d86d..58d6c529a 100644 --- a/src/bookmarks/ephy-bookmarks-menu.c +++ b/src/bookmarks/ephy-bookmarks-menu.c @@ -24,6 +24,7 @@ #include "ephy-bookmark-action.h" #include "ephy-shell.h" #include "ephy-node-common.h" +#include "ephy-string.h" #include "ephy-debug.h" //#include <libxml/entities.h> @@ -296,13 +297,16 @@ ephy_bookmarks_menu_rebuild (EphyBookmarksMenu *menu) for (l = node_list; l != NULL; l = l->next) { char verb[30], name[30], path[60]; - const char *title; + const char *tmp; + char *title; EphyNode *child; GtkAction *action; child = l->data; - title = ephy_node_get_property_string (child, EPHY_NODE_KEYWORD_PROP_NAME); + tmp = ephy_node_get_property_string (child, EPHY_NODE_KEYWORD_PROP_NAME); + title = ephy_string_double_underscores (tmp); + g_sprintf (verb, "OpenTopic%ld", ephy_node_get_id (child)); g_sprintf (name, "%sName", verb); g_sprintf (path, "%s/%s", BOOKMARKS_MENU_PATH, name); @@ -313,6 +317,7 @@ ephy_bookmarks_menu_rebuild (EphyBookmarksMenu *menu) NULL); gtk_action_group_add_action (p->action_group, action); g_object_unref (action); + g_free (title); gtk_ui_manager_add_ui (p->merge, p->ui_id, BOOKMARKS_MENU_PATH, |