aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-favorites-menu.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-04-14 04:39:28 +0800
committerChristian Persch <chpe@src.gnome.org>2004-04-14 04:39:28 +0800
commitf2738e3b37f0b84947059c310e5dc9e99dd3de12 (patch)
treedf55ed6485ce114e0856e206d12c13e3b44ae61e /src/ephy-favorites-menu.c
parent3c6234e1c9e2e91a2ffcdb643ba389c3bc123d1a (diff)
downloadgsoc2013-epiphany-f2738e3b37f0b84947059c310e5dc9e99dd3de12.tar
gsoc2013-epiphany-f2738e3b37f0b84947059c310e5dc9e99dd3de12.tar.gz
gsoc2013-epiphany-f2738e3b37f0b84947059c310e5dc9e99dd3de12.tar.bz2
gsoc2013-epiphany-f2738e3b37f0b84947059c310e5dc9e99dd3de12.tar.lz
gsoc2013-epiphany-f2738e3b37f0b84947059c310e5dc9e99dd3de12.tar.xz
gsoc2013-epiphany-f2738e3b37f0b84947059c310e5dc9e99dd3de12.tar.zst
gsoc2013-epiphany-f2738e3b37f0b84947059c310e5dc9e99dd3de12.zip
2004-04-09 Christian Persch <chpe@cvs.gnome.org>
2004-04-13 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), (ephy_bookmarks_menu_rebuild): * src/ephy-encoding-menu.c: (add_action): * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): * src/ephy-tabs-menu.c: (tab_added_cb): 2004-04-09 Christian Persch <chpe@cvs.gnome.org>
Diffstat (limited to 'src/ephy-favorites-menu.c')
-rw-r--r--src/ephy-favorites-menu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ephy-favorites-menu.c b/src/ephy-favorites-menu.c
index 40d3afddf..fee325c47 100644
--- a/src/ephy-favorites-menu.c
+++ b/src/ephy-favorites-menu.c
@@ -133,16 +133,20 @@ ephy_favorites_menu_rebuild (EphyFavoritesMenu *menu)
{
char verb[20];
char name[20];
+ char accel_path[48];
EphyNode *node;
GtkAction *action;
- g_sprintf (verb, "GoFav%d", i);
- g_sprintf (name, "GoFav%dMenu", i);
+ g_snprintf (verb, sizeof (verb),"GoFav%d", i);
+ g_snprintf (name, sizeof (name), "GoFav%dMenu", i);
+ g_snprintf (accel_path, sizeof (accel_path),
+ "<Actions>/FavoritesActions/%s", verb);
node = g_ptr_array_index (children, i);
action = ephy_bookmark_action_new (verb,
ephy_node_get_id (node));
+ gtk_action_set_accel_path (action, accel_path);
gtk_action_group_add_action (p->action_group, action);
g_object_unref (action);
g_signal_connect (action, "go_location",