aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-04-28 22:21:56 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-04-28 22:21:56 +0800
commiteeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef (patch)
tree59e4c84de0c540738807219b88ec645018309e58
parent2b4f4ce2f4d105ec1d24d236ed1508e7aa59ad12 (diff)
downloadgsoc2013-epiphany-eeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef.tar
gsoc2013-epiphany-eeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef.tar.gz
gsoc2013-epiphany-eeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef.tar.bz2
gsoc2013-epiphany-eeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef.tar.lz
gsoc2013-epiphany-eeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef.tar.xz
gsoc2013-epiphany-eeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef.tar.zst
gsoc2013-epiphany-eeaf97888b199c4fbd313665cbfd0f2ad6a2a7ef.zip
Consistent use of the term "Bookmarks Bar" in the code, ui and schema.
2003-04-28 David Bordoley <bordoley@msu.edu> * data/epiphany.schemas.in: * data/ui/epiphany-bookmark-editor-ui.xml.in: * data/ui/epiphany-toolbar.xml.in: * data/ui/epiphany-ui.xml.in: * embed/ephy-embed-types.h: * embed/mozilla/mozilla-embed.cpp: (mozilla_embed_new_window_cb): * lib/ephy-prefs.h: * src/ephy-toolbars-model.c: (ephy_toolbars_model_remove_bookmark), (ephy_toolbars_model_add_bookmark), (ephy_toolbars_model_has_bookmark): * src/ephy-window.c: (save_window_chrome), (translate_default_chrome), (update_layout_toggles), (ephy_window_set_chrome): * src/toolbar.c: (init_bookmarks_toolbar), (toolbar_set_visibility): * src/window-commands.c: (window_cmd_view_bookmarks_bar): * src/window-commands.h: * src/bookmarks/ephy-bookmark-properties.c: (build_ui): * src/bookmarks/ephy-bookmarks-editor.c: (cmd_show_in_bookmarks_bar), (ephy_bookmarks_editor_update_menu): Consistent use of the term "Bookmarks Bar" in the code, ui and schema. Replaces "Bookmarks Toolbar" and "Personal Toolbar." You'll probably have to delete your epiphany-toolbar.xml file to get the bm toolbar to work now.
-rw-r--r--ChangeLog25
-rw-r--r--data/epiphany.schemas.in8
-rw-r--r--data/ui/epiphany-bookmark-editor-ui.xml.in2
-rw-r--r--data/ui/epiphany-toolbar.xml.in2
-rw-r--r--data/ui/epiphany-ui.xml.in2
-rw-r--r--embed/ephy-embed-types.h2
-rw-r--r--embed/mozilla/mozilla-embed.cpp2
-rw-r--r--lib/ephy-prefs.h2
-rw-r--r--src/bookmarks/ephy-bookmark-properties.c2
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c30
-rwxr-xr-xsrc/ephy-toolbars-model.c6
-rw-r--r--src/ephy-window.c20
-rwxr-xr-xsrc/toolbar.c4
-rw-r--r--src/window-commands.c8
-rw-r--r--src/window-commands.h4
15 files changed, 72 insertions, 47 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c34d2934..05e296a77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2003-04-28 David Bordoley <bordoley@msu.edu>
+
+ * data/epiphany.schemas.in:
+ * data/ui/epiphany-bookmark-editor-ui.xml.in:
+ * data/ui/epiphany-toolbar.xml.in:
+ * data/ui/epiphany-ui.xml.in:
+ * embed/ephy-embed-types.h:
+ * embed/mozilla/mozilla-embed.cpp: (mozilla_embed_new_window_cb):
+ * lib/ephy-prefs.h:
+ * src/ephy-toolbars-model.c: (ephy_toolbars_model_remove_bookmark),
+ (ephy_toolbars_model_add_bookmark), (ephy_toolbars_model_has_bookmark):
+ * src/ephy-window.c: (save_window_chrome), (translate_default_chrome),
+ (update_layout_toggles), (ephy_window_set_chrome):
+ * src/toolbar.c: (init_bookmarks_toolbar), (toolbar_set_visibility):
+ * src/window-commands.c: (window_cmd_view_bookmarks_bar):
+ * src/window-commands.h:
+ * src/bookmarks/ephy-bookmark-properties.c: (build_ui):
+ * src/bookmarks/ephy-bookmarks-editor.c: (cmd_show_in_bookmarks_bar),
+ (ephy_bookmarks_editor_update_menu):
+
+ Consistent use of the term "Bookmarks Bar" in the code, ui and schema.
+ Replaces "Bookmarks Toolbar" and "Personal Toolbar." You'll probably
+ have to delete your epiphany-toolbar.xml file to get the bm toolbar to
+ work now.
+
2003-04-28 Marco Pesenti Gritti <marco@it.gnome.org>
* src/ephy-automation.c:
diff --git a/data/epiphany.schemas.in b/data/epiphany.schemas.in
index b795f33dc..06d0afd5f 100644
--- a/data/epiphany.schemas.in
+++ b/data/epiphany.schemas.in
@@ -260,14 +260,14 @@
</locale>
</schema>
<schema>
- <key>/schemas/apps/epiphany/interface/show_personal_toolbar</key>
- <applyto>/apps/epiphany/interface/show_personal_toolbar</applyto>
+ <key>/schemas/apps/epiphany/interface/show_bookmarks_bar</key>
+ <applyto>/apps/epiphany/interface/show_bookmarks_bar</applyto>
<owner>epiphany</owner>
<type>bool</type>
<default>0</default>
<locale name="C">
- <short>Show bookmarks toolbar by default</short>
- <long>Show bookmarks toolbar by default.</long>
+ <short>Show bookmarks bar by default</short>
+ <long>Show bookmarks bar by default.</long>
</locale>
</schema>
<schema>
diff --git a/data/ui/epiphany-bookmark-editor-ui.xml.in b/data/ui/epiphany-bookmark-editor-ui.xml.in
index 88d4044d9..5a2590d79 100644
--- a/data/ui/epiphany-bookmark-editor-ui.xml.in
+++ b/data/ui/epiphany-bookmark-editor-ui.xml.in
@@ -10,7 +10,7 @@
<menuitem name="FileRename" verb="Rename"/>
<menuitem name="FileDelete" verb="Delete"/>
<separator name="FileSep3"/>
- <menuitem name="FileShowInToolbar" verb="ShowInToolbar"/>
+ <menuitem name="FileShowInBookmarksBar" verb="ShowInBookmarksBar"/>
<menuitem name="FileProperties" verb="Properties"/>
<separator name="FileSep4"/>
<menuitem name="FileClose" verb="Close"/>
diff --git a/data/ui/epiphany-toolbar.xml.in b/data/ui/epiphany-toolbar.xml.in
index c0680a827..bb55af077 100644
--- a/data/ui/epiphany-toolbar.xml.in
+++ b/data/ui/epiphany-toolbar.xml.in
@@ -33,7 +33,7 @@
<toolitem verb="Location"/>
<toolitem verb="Spinner"/>
</toolbar>
-<toolbar name="BookmarksToolbar">
+<toolbar name="BookmarksBar">
<toolitem verb="GoTopicId0"/>
</toolbar>
</editabletoolbar>
diff --git a/data/ui/epiphany-ui.xml.in b/data/ui/epiphany-ui.xml.in
index 0da96aa19..b954f76d7 100644
--- a/data/ui/epiphany-ui.xml.in
+++ b/data/ui/epiphany-ui.xml.in
@@ -33,7 +33,7 @@
<submenu name="ViewMenu" verb="View">
<menuitem name="ViewToolbarMenu" verb="ViewToolbar"/>
- <menuitem name="ViewBookmarksToolbarMenu" verb="ViewBookmarksToolbar"/>
+ <menuitem name="ViewBookmarksBarMenu" verb="ViewBookmarksBar"/>
<menuitem name="ViewStatusbarMenu" verb="ViewStatusbar"/>
<menuitem name="ViewFullscreenMenu" verb="ViewFullscreen"/>
<separator name="ViewSep1"/>
diff --git a/embed/ephy-embed-types.h b/embed/ephy-embed-types.h
index adf32cc6f..07055433a 100644
--- a/embed/ephy-embed-types.h
+++ b/embed/ephy-embed-types.h
@@ -29,7 +29,7 @@ typedef enum
EMBED_CHROME_DEFAULT = 1 << 0,
EMBED_CHROME_MENUBARON = 1 << 1,
EMBED_CHROME_TOOLBARON = 1 << 2,
- EMBED_CHROME_PERSONALTOOLBARON = 1 << 3,
+ EMBED_CHROME_BOOKMARKSBARON = 1 << 3,
EMBED_CHROME_STATUSBARON = 1 << 4,
EMBED_CHROME_WINDOWRAISED = 1 << 5,
EMBED_CHROME_WINDOWLOWERED = 1 << 6,
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 0fdcb8e7a..af9e9c3ad 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -1423,7 +1423,7 @@ mozilla_embed_new_window_cb (GtkMozEmbed *embed,
{ GTK_MOZ_EMBED_FLAG_DEFAULTCHROME, EMBED_CHROME_DEFAULT },
{ GTK_MOZ_EMBED_FLAG_MENUBARON, EMBED_CHROME_MENUBARON },
{ GTK_MOZ_EMBED_FLAG_TOOLBARON, EMBED_CHROME_TOOLBARON },
- { GTK_MOZ_EMBED_FLAG_PERSONALTOOLBARON, EMBED_CHROME_PERSONALTOOLBARON },
+ { GTK_MOZ_EMBED_FLAG_PERSONALTOOLBARON, EMBED_CHROME_BOOKMARKSBARON },
{ GTK_MOZ_EMBED_FLAG_STATUSBARON, EMBED_CHROME_STATUSBARON },
{ GTK_MOZ_EMBED_FLAG_WINDOWRAISED, EMBED_CHROME_WINDOWRAISED },
{ GTK_MOZ_EMBED_FLAG_WINDOWLOWERED, EMBED_CHROME_WINDOWLOWERED },
diff --git a/lib/ephy-prefs.h b/lib/ephy-prefs.h
index cd52d34b4..d8bf1a317 100644
--- a/lib/ephy-prefs.h
+++ b/lib/ephy-prefs.h
@@ -36,7 +36,7 @@ G_BEGIN_DECLS
#define CONF_WINDOWS_FS_SHOW_STATUSBAR "/apps/epiphany/interface/show_statusbar_in_fullscreen"
#define CONF_WINDOWS_SHOW_SIDEBAR "/apps/epiphany/interface/show_sidebar"
#define CONF_WINDOWS_SHOW_TOOLBARS "/apps/epiphany/interface/show_toolbars"
-#define CONF_WINDOWS_SHOW_PERSONAL_TOOLBAR "/apps/epiphany/interface/show_personal_toolbar"
+#define CONF_WINDOWS_SHOW_BOOKMARKS_BAR "/apps/epiphany/interface/show_bookmarks_bar"
#define CONF_WINDOWS_SHOW_STATUSBAR "/apps/epiphany/interface/show_statusbar"
#define CONF_TOOLBAR_SETUP "/apps/epiphany/interface/toolbar_setup"
#define CONF_TOOLBAR_SPINNER_THEME "/apps/epiphany/interface/spinner_theme"
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index fe2b2df76..a82a5e727 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -405,7 +405,7 @@ build_ui (EphyBookmarkProperties *editor)
gtk_table_attach (GTK_TABLE (table), scrolled_window, 1, 2, 2, 3,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
- checkbox = gtk_check_button_new_with_mnemonic (_("_Show in the bookmarks toolbar"));
+ checkbox = gtk_check_button_new_with_mnemonic (_("_Show in bookmarks bar"));
id = ephy_node_get_id (editor->priv->bookmark);
state = ephy_toolbars_model_has_bookmark (editor->priv->tb_model, FALSE, id);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), state);
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 306392abe..cf4c7c619 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -89,7 +89,7 @@ static void cmd_open_bookmarks_in_tabs (EggAction *action,
EphyBookmarksEditor *editor);
static void cmd_open_bookmarks_in_browser (EggAction *action,
EphyBookmarksEditor *editor);
-static void cmd_show_in_the_toolbar (EggAction *action,
+static void cmd_show_in_bookmarks_bar (EggAction *action,
EphyBookmarksEditor *editor);
static void cmd_delete (EggAction *action,
EphyBookmarksEditor *editor);
@@ -158,9 +158,9 @@ static EggActionGroupEntry ephy_bookmark_popup_entries [] = {
{ "Delete", N_("_Delete"), GTK_STOCK_DELETE, NULL,
N_("Delete the selected bookmark or topic"),
G_CALLBACK (cmd_delete), NULL },
- { "ShowInToolbar", N_("_Show in the Toolbar"), NULL, NULL,
- N_("Show the selected bookmark or topic in the bookmarks toolbar"),
- G_CALLBACK (cmd_show_in_the_toolbar), NULL, TOGGLE_ACTION },
+ { "ShowInBookmarksBar", N_("_Show in Bookmarks Bar"), NULL, NULL,
+ N_("Show the selected bookmark or topic in the bookmarks bar"),
+ G_CALLBACK (cmd_show_in_bookmarks_bar), NULL, TOGGLE_ACTION },
{ "Properties", N_("_Properties"), GTK_STOCK_PROPERTIES, "<alt>Return",
N_("View or modify the properties of the selected bookmark"),
G_CALLBACK (cmd_bookmark_properties), NULL },
@@ -250,8 +250,8 @@ get_target_window (EphyBookmarksEditor *editor)
}
static void
-cmd_show_in_the_toolbar (EggAction *action,
- EphyBookmarksEditor *editor)
+cmd_show_in_bookmarks_bar (EggAction *action,
+ EphyBookmarksEditor *editor)
{
EphyNode *node;
GList *selection;
@@ -592,7 +592,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
gboolean key_normal = FALSE;
gboolean bmk_multiple_selection;
gboolean cut, copy, paste, select_all;
- gboolean can_show_in_toolbar, show_in_toolbar = FALSE;
+ gboolean can_show_in_bookmarks_bar, show_in_bookmarks_bar = FALSE;
EggActionGroup *action_group;
EggAction *action;
GList *selected;
@@ -642,7 +642,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
gulong id;
id = ephy_node_get_id (node);
- show_in_toolbar = ephy_toolbars_model_has_bookmark
+ show_in_bookmarks_bar = ephy_toolbars_model_has_bookmark
(editor->priv->tb_model, TRUE, id);
priority = ephy_node_get_property_int
@@ -660,7 +660,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
gulong id;
id = ephy_node_get_id (node);
- show_in_toolbar = ephy_toolbars_model_has_bookmark
+ show_in_bookmarks_bar = ephy_toolbars_model_has_bookmark
(editor->priv->tb_model, FALSE, id);
g_list_free (selected);
@@ -693,7 +693,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
delete = (bmk_focus && bmk_selection) ||
(key_selection && key_focus && key_normal);
properties = (bmk_focus && bmk_selection && !bmk_multiple_selection);
- can_show_in_toolbar = (bmk_focus && bmk_selection && !bmk_multiple_selection) ||
+ can_show_in_bookmarks_bar = (bmk_focus && bmk_selection && !bmk_multiple_selection) ||
(key_selection && key_focus);
action_group = editor->priv->action_group;
@@ -718,17 +718,17 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
g_object_set (action, "sensitive", paste, NULL);
action = egg_action_group_get_action (action_group, "SelectAll");
g_object_set (action, "sensitive", select_all, NULL);
- action = egg_action_group_get_action (action_group, "ShowInToolbar");
- g_object_set (action, "sensitive", can_show_in_toolbar, NULL);
+ action = egg_action_group_get_action (action_group, "ShowInBookmarksBar");
+ g_object_set (action, "sensitive", can_show_in_bookmarks_bar, NULL);
g_signal_handlers_block_by_func
(G_OBJECT (EGG_TOGGLE_ACTION (action)),
- G_CALLBACK (cmd_show_in_the_toolbar),
+ G_CALLBACK (cmd_show_in_bookmarks_bar),
editor);
- egg_toggle_action_set_active (EGG_TOGGLE_ACTION (action), show_in_toolbar);
+ egg_toggle_action_set_active (EGG_TOGGLE_ACTION (action), show_in_bookmarks_bar);
g_signal_handlers_unblock_by_func
(G_OBJECT (EGG_TOGGLE_ACTION (action)),
- G_CALLBACK (cmd_show_in_the_toolbar),
+ G_CALLBACK (cmd_show_in_bookmarks_bar),
editor);
}
diff --git a/src/ephy-toolbars-model.c b/src/ephy-toolbars-model.c
index 8c3bc19fc..a256c485a 100755
--- a/src/ephy-toolbars-model.c
+++ b/src/ephy-toolbars-model.c
@@ -236,7 +236,7 @@ ephy_toolbars_model_remove_bookmark (EphyToolbarsModel *model,
action_name = get_action_name (topic, id);
- toolbar_position = get_toolbar_pos (model, "BookmarksToolbar");
+ toolbar_position = get_toolbar_pos (model, "BookmarksBar");
g_return_if_fail (toolbar_position != -1);
position = get_item_pos (model, toolbar_position, action_name);
@@ -257,7 +257,7 @@ ephy_toolbars_model_add_bookmark (EphyToolbarsModel *model,
action_name = get_action_name (topic, id);
- toolbar_position = get_toolbar_pos (model, "BookmarksToolbar");
+ toolbar_position = get_toolbar_pos (model, "BookmarksBar");
g_return_if_fail (toolbar_position != -1);
egg_toolbars_model_add_item (EGG_TOOLBARS_MODEL (model),
@@ -277,7 +277,7 @@ ephy_toolbars_model_has_bookmark (EphyToolbarsModel *model,
action_name = get_action_name (topic, id);
- toolbar_position = get_toolbar_pos (model, "BookmarksToolbar");
+ toolbar_position = get_toolbar_pos (model, "BookmarksBar");
g_return_val_if_fail (toolbar_position != -1, FALSE);
position = get_item_pos (model, toolbar_position, action_name);
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 8152b0019..34cfc588c 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -129,9 +129,9 @@ static EggActionGroupEntry ephy_menu_entries [] = {
{ "ViewToolbar", N_("_Toolbar"), NULL, "<shift><control>T",
N_("Show or hide toolbar"),
G_CALLBACK (window_cmd_view_toolbar), NULL, TOGGLE_ACTION },
- { "ViewBookmarksToolbar", N_("_Bookmarks Toolbar"), NULL, NULL,
- N_("Show or hide bookmarks toolbar"),
- G_CALLBACK (window_cmd_view_bookmarks_toolbar), NULL, TOGGLE_ACTION },
+ { "ViewBookmarksBar", N_("_Bookmarks Bar"), NULL, NULL,
+ N_("Show or hide bookmarks bar"),
+ G_CALLBACK (window_cmd_view_bookmarks_bar), NULL, TOGGLE_ACTION },
{ "ViewStatusbar", N_("St_atusbar"), NULL, NULL,
N_("Show or hide statusbar"),
G_CALLBACK (window_cmd_view_statusbar), NULL, TOGGLE_ACTION },
@@ -613,8 +613,8 @@ save_window_chrome (EphyWindow *window)
}
else
{
- eel_gconf_set_boolean (CONF_WINDOWS_SHOW_PERSONAL_TOOLBAR,
- flags & EMBED_CHROME_PERSONALTOOLBARON);
+ eel_gconf_set_boolean (CONF_WINDOWS_SHOW_BOOKMARKS_BAR,
+ flags & EMBED_CHROME_BOOKMARKSBARON);
eel_gconf_set_boolean (CONF_WINDOWS_SHOW_TOOLBARS,
flags & EMBED_CHROME_TOOLBARON);
eel_gconf_set_boolean (CONF_WINDOWS_SHOW_STATUSBAR,
@@ -770,9 +770,9 @@ translate_default_chrome (EmbedChromeMask *chrome_mask)
{
*chrome_mask |= EMBED_CHROME_TOOLBARON;
}
- if (eel_gconf_get_boolean (CONF_WINDOWS_SHOW_PERSONAL_TOOLBAR))
+ if (eel_gconf_get_boolean (CONF_WINDOWS_SHOW_BOOKMARKS_BAR))
{
- *chrome_mask |= EMBED_CHROME_PERSONALTOOLBARON;
+ *chrome_mask |= EMBED_CHROME_BOOKMARKSBARON;
}
*chrome_mask |= EMBED_CHROME_MENUBARON;
@@ -790,9 +790,9 @@ update_layout_toggles (EphyWindow *window)
egg_toggle_action_set_active (EGG_TOGGLE_ACTION (action),
mask & EMBED_CHROME_TOOLBARON);
- action = egg_action_group_get_action (action_group, "ViewBookmarksToolbar");
+ action = egg_action_group_get_action (action_group, "ViewBookmarksBar");
egg_toggle_action_set_active (EGG_TOGGLE_ACTION (action),
- mask & EMBED_CHROME_PERSONALTOOLBARON);
+ mask & EMBED_CHROME_BOOKMARKSBARON);
action = egg_action_group_get_action (action_group, "ViewStatusbar");
egg_toggle_action_set_active (EGG_TOGGLE_ACTION (action),
@@ -823,7 +823,7 @@ ephy_window_set_chrome (EphyWindow *window,
toolbar_set_visibility (window->priv->toolbar,
flags & EMBED_CHROME_TOOLBARON,
- flags & EMBED_CHROME_PERSONALTOOLBARON);
+ flags & EMBED_CHROME_BOOKMARKSBARON);
if (flags & EMBED_CHROME_STATUSBARON)
{
diff --git a/src/toolbar.c b/src/toolbar.c
index 6b366f956..588eca2b0 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -336,7 +336,7 @@ init_bookmarks_toolbar (Toolbar *t)
(EGG_TOOLBARS_MODEL (model), i);
g_return_if_fail (t_name != NULL);
- if (strcmp (t_name, "BookmarksToolbar") == 0)
+ if (strcmp (t_name, "BookmarksBar") == 0)
{
egg_editable_toolbar_set_drag_dest
(EGG_EDITABLE_TOOLBAR (t),
@@ -656,7 +656,7 @@ toolbar_set_visibility (Toolbar *t,
t_name = egg_toolbars_model_toolbar_nth
(EGG_TOOLBARS_MODEL (model), i);
g_return_if_fail (t_name != NULL);
- if (strcmp (t_name, "BookmarksToolbar") == 0)
+ if (strcmp (t_name, "BookmarksBar") == 0)
{
if (bmk_toolbars)
{
diff --git a/src/window-commands.c b/src/window-commands.c
index 557391704..ff7e55d15 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -485,8 +485,8 @@ window_cmd_edit_find_prev (EggAction *action,
}
void
-window_cmd_view_bookmarks_toolbar (EggAction *action,
- EphyWindow *window)
+window_cmd_view_bookmarks_bar (EggAction *action,
+ EphyWindow *window)
{
EmbedChromeMask mask;
gboolean active;
@@ -494,11 +494,11 @@ window_cmd_view_bookmarks_toolbar (EggAction *action,
mask = ephy_window_get_chrome (window);
active = EGG_TOGGLE_ACTION (action)->active;
- current_state = (mask & EMBED_CHROME_PERSONALTOOLBARON) > 0;
+ current_state = (mask & EMBED_CHROME_BOOKMARKSBARON) > 0;
if (active != current_state)
{
- mask ^= EMBED_CHROME_PERSONALTOOLBARON;
+ mask ^= EMBED_CHROME_BOOKMARKSBARON;
ephy_window_set_chrome (window, mask);
}
}
diff --git a/src/window-commands.h b/src/window-commands.h
index 8594e791f..8b5ee56b4 100644
--- a/src/window-commands.h
+++ b/src/window-commands.h
@@ -104,8 +104,8 @@ void window_cmd_view_statusbar (EggAction *action,
void window_cmd_view_toolbar (EggAction *action,
EphyWindow *window);
-void window_cmd_view_bookmarks_toolbar (EggAction *action,
- EphyWindow *window);
+void window_cmd_view_bookmarks_bar (EggAction *action,
+ EphyWindow *window);
void window_cmd_view_fullscreen (EggAction *action,
EphyWindow *window);