diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-04-01 20:39:19 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-04-01 20:39:19 +0800 |
commit | 1ce9116fe0e3d1568634135867e4ffa9143662ac (patch) | |
tree | 0366c369cfb67318c5676e35f842a15dc5ef60be | |
parent | 6ec2dc861fe30ba2da32847b3644cb3c179f3163 (diff) | |
download | gsoc2013-epiphany-1ce9116fe0e3d1568634135867e4ffa9143662ac.tar gsoc2013-epiphany-1ce9116fe0e3d1568634135867e4ffa9143662ac.tar.gz gsoc2013-epiphany-1ce9116fe0e3d1568634135867e4ffa9143662ac.tar.bz2 gsoc2013-epiphany-1ce9116fe0e3d1568634135867e4ffa9143662ac.tar.lz gsoc2013-epiphany-1ce9116fe0e3d1568634135867e4ffa9143662ac.tar.xz gsoc2013-epiphany-1ce9116fe0e3d1568634135867e4ffa9143662ac.tar.zst gsoc2013-epiphany-1ce9116fe0e3d1568634135867e4ffa9143662ac.zip |
Fix bookmarks toolbar visibility in fullscreen and print preview mode, as
2004-04-01 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed.c: (ephy_embed_chrome_get_type):
* embed/ephy-embed.h:
* embed/mozilla/mozilla-embed.cpp:
* src/ephy-window.c: (get_chromes_visibility),
(sync_chromes_visibility), (update_chromes_actions),
(get_default_chrome), (ephy_window_init), (sync_prefs_with_chrome),
(ephy_window_view_bookmarksbar_cb):
Fix bookmarks toolbar visibility in fullscreen and print preview mode, as
well as for javascript popups. Fixes bug #138520.
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | embed/ephy-embed.c | 7 | ||||
-rw-r--r-- | embed/ephy-embed.h | 9 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 1 | ||||
-rw-r--r-- | po/en_GB.po | 455 | ||||
-rw-r--r-- | src/ephy-window.c | 39 |
6 files changed, 271 insertions, 253 deletions
@@ -1,3 +1,16 @@ +2004-04-01 Christian Persch <chpe@cvs.gnome.org> + + * embed/ephy-embed.c: (ephy_embed_chrome_get_type): + * embed/ephy-embed.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-window.c: (get_chromes_visibility), + (sync_chromes_visibility), (update_chromes_actions), + (get_default_chrome), (ephy_window_init), (sync_prefs_with_chrome), + (ephy_window_view_bookmarksbar_cb): + + Fix bookmarks toolbar visibility in fullscreen and print preview mode, as + well as for javascript popups. Fixes bug #138520. + 2004-03-30 Piers Cornwell <piers@gnome.org> * src/ephy-history-window.c: (confirmation_dialog_construct): diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 852090e44..97dfa058a 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -40,9 +40,10 @@ ephy_embed_chrome_get_type (void) static const GFlagsValue values[] = { { EPHY_EMBED_CHROME_DEFAULT, "EPHY_EMBED_CHROME_DEFAULT", "default" }, - { EPHY_EMBED_CHROME_MENUBAR, "EPHY_EMBED_CHROME_MENUBARON", "menubar" }, - { EPHY_EMBED_CHROME_TOOLBAR, "EPHY_EMBED_CHROME_TOOLBARON", "toolbar" }, - { EPHY_EMBED_CHROME_STATUSBAR, "EPHY_EMBED_CHROME_STATUSBARON", "statusbar" }, + { EPHY_EMBED_CHROME_MENUBAR, "EPHY_EMBED_CHROME_MENUBAR", "menubar" }, + { EPHY_EMBED_CHROME_TOOLBAR, "EPHY_EMBED_CHROME_TOOLBAR", "toolbar" }, + { EPHY_EMBED_CHROME_STATUSBAR, "EPHY_EMBED_CHROME_STATUSBAR", "statusbar" }, + { EPHY_EMBED_CHROME_BOOKMARKSBAR, "EPHY_EMBED_CHROME_BOOKMARKSBAR", "bookmarksbar" }, { 0, NULL, NULL } }; diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h index afeee8d9f..4ca0e1e15 100644 --- a/embed/ephy-embed.h +++ b/embed/ephy-embed.h @@ -59,10 +59,11 @@ typedef enum typedef enum { - EPHY_EMBED_CHROME_DEFAULT = 1 << 0, - EPHY_EMBED_CHROME_MENUBAR = 1 << 1, - EPHY_EMBED_CHROME_TOOLBAR = 1 << 2, - EPHY_EMBED_CHROME_STATUSBAR = 1 << 3 + EPHY_EMBED_CHROME_DEFAULT = 1 << 0, + EPHY_EMBED_CHROME_MENUBAR = 1 << 1, + EPHY_EMBED_CHROME_TOOLBAR = 1 << 2, + EPHY_EMBED_CHROME_STATUSBAR = 1 << 3, + EPHY_EMBED_CHROME_BOOKMARKSBAR = 1 << 4 } EphyEmbedChrome; typedef enum diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index 3108f1247..55cea060e 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -1001,6 +1001,7 @@ mozilla_embed_new_window_cb (GtkMozEmbed *embed, { GTK_MOZ_EMBED_FLAG_MENUBARON, EPHY_EMBED_CHROME_MENUBAR }, { GTK_MOZ_EMBED_FLAG_TOOLBARON, EPHY_EMBED_CHROME_TOOLBAR }, { GTK_MOZ_EMBED_FLAG_STATUSBARON, EPHY_EMBED_CHROME_STATUSBAR }, + { GTK_MOZ_EMBED_FLAG_PERSONALTOOLBARON, EPHY_EMBED_CHROME_BOOKMARKSBAR }, { 0, 0 } }; diff --git a/po/en_GB.po b/po/en_GB.po index 15a5de6a6..e6599cbce 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: epiphany\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2004-02-23 14:41+0100\n" +"POT-Creation-Date: 2004-03-31 17:10+0200\n" "PO-Revision-Date: 2004-02-21 21:50+0200\n" "Last-Translator: Christian Persch <chpe@cvs.gnome.org>\n" "Language-Team: British English\n" @@ -652,7 +652,7 @@ msgid "Download Manager" msgstr "Download Manager" #: data/glade/epiphany.glade.h:8 data/ui/nautilus-epiphany-view.xml.h:11 -#: src/ephy-window.c:951 +#: src/ephy-window.c:1012 msgid "Find" msgstr "Find" @@ -813,7 +813,7 @@ msgid "_Add..." msgstr "_Add..." #: data/glade/prefs-dialog.glade.h:34 -#: src/bookmarks/ephy-bookmark-properties.c:371 +#: src/bookmarks/ephy-bookmark-properties.c:370 msgid "_Address:" msgstr "_Address:" @@ -849,7 +849,7 @@ msgstr "_Never accept" msgid "_Remove" msgstr "_Remove" -#: data/glade/prefs-dialog.glade.h:43 src/ephy-window.c:191 +#: data/glade/prefs-dialog.glade.h:43 src/ephy-window.c:198 msgid "_Up" msgstr "_Up" @@ -934,7 +934,7 @@ msgid "Paper" msgstr "Paper" #: data/glade/print.glade.h:23 data/ui/nautilus-epiphany-view.xml.h:23 -#: src/ephy-window.c:947 +#: src/ephy-window.c:1008 msgid "Print" msgstr "Print" @@ -1125,22 +1125,22 @@ msgstr "Use Image As Background" #: data/ui/nautilus-epiphany-view.xml.h:33 #: src/bookmarks/ephy-bookmarks-editor.c:162 src/ephy-history-window.c:152 -#: src/ephy-window.c:77 +#: src/ephy-window.c:84 msgid "_Edit" msgstr "_Edit" #. Toplevel #: data/ui/nautilus-epiphany-view.xml.h:34 #: src/bookmarks/ephy-bookmarks-editor.c:161 src/ephy-history-window.c:151 -#: src/ephy-window.c:76 +#: src/ephy-window.c:83 msgid "_File" msgstr "_File" -#: data/ui/nautilus-epiphany-view.xml.h:35 src/ephy-window.c:134 +#: data/ui/nautilus-epiphany-view.xml.h:35 src/ephy-window.c:141 msgid "_Find..." msgstr "_Find..." -#: data/ui/nautilus-epiphany-view.xml.h:36 src/ephy-window.c:105 +#: data/ui/nautilus-epiphany-view.xml.h:36 src/ephy-window.c:112 msgid "_Print..." msgstr "_Print..." @@ -1159,7 +1159,7 @@ msgid "_Resume" msgstr "_Resume" #: embed/downloader-view.c:343 lib/widgets/ephy-cell-renderer-progress.c:35 -#: src/ephy-window.c:1132 +#: src/ephy-window.c:1193 msgid "Unknown" msgstr "Unknown" @@ -1184,15 +1184,15 @@ msgid_plural "%d downloads" msgstr[0] "%d download" msgstr[1] "%d downloads" -#: embed/downloader-view.c:513 +#: embed/downloader-view.c:515 msgid "%" msgstr "%" -#: embed/downloader-view.c:524 +#: embed/downloader-view.c:526 msgid "File" msgstr "File" -#: embed/downloader-view.c:538 +#: embed/downloader-view.c:540 msgid "Remaining" msgstr "Remaining" @@ -1571,7 +1571,7 @@ msgstr "Ukrainian" msgid "Unknown (%s)" msgstr "Unknown (%s)" -#: embed/ephy-history.c:487 src/bookmarks/ephy-bookmarks.c:612 +#: embed/ephy-history.c:487 src/bookmarks/ephy-bookmarks.c:645 msgid "All" msgstr "All" @@ -1583,23 +1583,23 @@ msgstr "Others" msgid "Local files" msgstr "Local files" -#: embed/mozilla/ContentHandler.cpp:135 -#: embed/mozilla/EphyHeaderSniffer.cpp:316 +#: embed/mozilla/ContentHandler.cpp:134 +#: embed/mozilla/EphyHeaderSniffer.cpp:362 msgid "Save" msgstr "Save" #: embed/mozilla/ContentHandler.cpp:265 -msgid "_Save As..." -msgstr "_Save As..." - -#: embed/mozilla/ContentHandler.cpp:268 msgid "_Open" msgstr "_Open" -#: embed/mozilla/ContentHandler.cpp:268 +#: embed/mozilla/ContentHandler.cpp:265 msgid "_Download" msgstr "_Download" +#: embed/mozilla/ContentHandler.cpp:269 +msgid "_Save As..." +msgstr "_Save As..." + #: embed/mozilla/ContentHandler.cpp:286 msgid "Download the unsafe file?" msgstr "Download the unsafe file?" @@ -1636,9 +1636,8 @@ msgstr "" "It is not possible to view this file because there is no application " "installed that can open it. You can save it instead." -#: embed/mozilla/EphyHeaderSniffer.cpp:291 -#: src/bookmarks/ephy-bookmarks-import.c:247 -#: src/bookmarks/ephy-bookmarks-import.c:373 src/ephy-toolbars-model.c:201 +#: embed/mozilla/EphyHeaderSniffer.cpp:331 +#: src/bookmarks/ephy-bookmarks-import.c:252 src/ephy-toolbars-model.c:201 #: src/window-commands.c:342 msgid "Untitled" msgstr "Untitled" @@ -1661,44 +1660,44 @@ msgstr "" "\n" "Would you like to try the GNOME default?" -#: embed/mozilla/FilePicker.cpp:156 +#: embed/mozilla/FilePicker.cpp:163 msgid "All files" msgstr "All files" -#: embed/mozilla/FilePicker.cpp:161 +#: embed/mozilla/FilePicker.cpp:168 msgid "HTML files" msgstr "HTML files" -#: embed/mozilla/FilePicker.cpp:166 +#: embed/mozilla/FilePicker.cpp:173 msgid "Text files" msgstr "Text files" -#: embed/mozilla/FilePicker.cpp:171 +#: embed/mozilla/FilePicker.cpp:178 msgid "Image files" msgstr "Image files" -#: embed/mozilla/FilePicker.cpp:176 +#: embed/mozilla/FilePicker.cpp:183 msgid "XML files" msgstr "XML files" -#: embed/mozilla/FilePicker.cpp:181 +#: embed/mozilla/FilePicker.cpp:188 msgid "XUL files" msgstr "XUL files" -#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:182 +#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:185 msgid "_Select Certificate" msgstr "_Select Certificate" -#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:221 +#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:224 #, c-format msgid "Choose a certificate to present as identification to %s." msgstr "Choose a certificate to present as identification to %s." -#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:224 +#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:227 msgid "Select a certificate to identify yourself." msgstr "Select a certificate to identify yourself." -#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:274 +#: embed/mozilla/GtkNSSClientAuthDialogs.cpp:277 msgid "Certificate _Details" msgstr "Certificate _Details" @@ -1937,11 +1936,11 @@ msgstr "" msgid "Could not verify this certificate for unknown reasons." msgstr "Could not verify this certificate for unknown reasons." -#: embed/mozilla/GtkNSSKeyPairDialogs.cpp:181 +#: embed/mozilla/GtkNSSKeyPairDialogs.cpp:183 msgid "Generating Private Key." msgstr "Generating Private Key." -#: embed/mozilla/GtkNSSKeyPairDialogs.cpp:182 +#: embed/mozilla/GtkNSSKeyPairDialogs.cpp:184 msgid "" "Please wait while a new private key is generated. This process could take a " "few minutes." @@ -2000,15 +1999,15 @@ msgstr "" msgid "GConf Error" msgstr "GConf Error" -#: lib/egg/egg-editable-toolbar.c:510 +#: lib/egg/egg-editable-toolbar.c:512 msgid "_Remove Toolbar" msgstr "_Remove Toolbar" -#: lib/egg/egg-toolbar-editor.c:552 +#: lib/egg/egg-toolbar-editor.c:559 msgid "Separator" msgstr "Separator" -#: lib/egg/egg-toolbar-editor.c:582 +#: lib/egg/egg-toolbar-editor.c:589 msgid "" "Drag an item onto the toolbars above to add it, from the toolbars in the " "items table to remove it." @@ -2017,21 +2016,21 @@ msgstr "" "items table to remove it." #. The name of the default downloads folder -#: lib/ephy-file-helpers.c:72 src/prefs-dialog.c:1107 +#: lib/ephy-file-helpers.c:75 src/prefs-dialog.c:1107 msgid "Downloads" msgstr "Downloads" -#: lib/ephy-file-helpers.c:149 +#: lib/ephy-file-helpers.c:164 #, c-format msgid "Failed to find %s" msgstr "Failed to find %s" -#: lib/ephy-file-helpers.c:214 +#: lib/ephy-file-helpers.c:229 #, c-format msgid "%s exists, please move it out of the way." msgstr "%s exists, please move it out of the way." -#: lib/ephy-file-helpers.c:217 +#: lib/ephy-file-helpers.c:232 #, c-format msgid "Failed to create directory %s." msgstr "Failed to create directory %s." @@ -2154,7 +2153,7 @@ msgstr "400%" msgid "Failed" msgstr "Failed" -#: src/bookmarks/ephy-bookmark-action.c:221 +#: src/bookmarks/ephy-bookmark-action.c:248 #, c-format msgid "%s:" msgstr "%s:" @@ -2164,27 +2163,27 @@ msgstr "%s:" msgid "%s Properties" msgstr "%s Properties" -#: src/bookmarks/ephy-bookmark-properties.c:352 +#: src/bookmarks/ephy-bookmark-properties.c:351 #: src/bookmarks/ephy-new-bookmark.c:215 msgid "_Title:" msgstr "_Title:" -#: src/bookmarks/ephy-bookmark-properties.c:394 +#: src/bookmarks/ephy-bookmark-properties.c:393 #: src/bookmarks/ephy-new-bookmark.c:238 msgid "To_pics:" msgstr "To_pics:" -#: src/bookmarks/ephy-bookmark-properties.c:403 +#: src/bookmarks/ephy-bookmark-properties.c:402 msgid "_Show in bookmarks bar" msgstr "_Show in bookmarks bar" #: src/bookmarks/ephy-bookmarks-editor.c:163 src/ephy-history-window.c:153 -#: src/ephy-window.c:78 +#: src/ephy-window.c:85 msgid "_View" msgstr "_View" #: src/bookmarks/ephy-bookmarks-editor.c:164 src/ephy-history-window.c:154 -#: src/ephy-window.c:83 +#: src/ephy-window.c:90 msgid "_Help" msgstr "_Help" @@ -2199,7 +2198,7 @@ msgstr "Create a new topic" #. File Menu #: src/bookmarks/ephy-bookmarks-editor.c:171 -#: src/bookmarks/ephy-bookmarks-editor.c:977 src/ephy-history-window.c:158 +#: src/bookmarks/ephy-bookmarks-editor.c:988 src/ephy-history-window.c:158 #: src/ephy-history-window.c:738 msgid "_Open in New Window" msgstr "_Open in New Window" @@ -2209,7 +2208,7 @@ msgid "Open the selected bookmark in a new window" msgstr "Open the selected bookmark in a new window" #: src/bookmarks/ephy-bookmarks-editor.c:174 -#: src/bookmarks/ephy-bookmarks-editor.c:978 src/ephy-history-window.c:161 +#: src/bookmarks/ephy-bookmarks-editor.c:989 src/ephy-history-window.c:161 #: src/ephy-history-window.c:739 msgid "Open in New _Tab" msgstr "Open in New _Tab" @@ -2251,7 +2250,7 @@ msgid "Import bookmarks from another browser or a bookmarks file" msgstr "Import bookmarks from another browser or from a bookmarks file" #: src/bookmarks/ephy-bookmarks-editor.c:188 src/ephy-history-window.c:170 -#: src/ephy-window.c:111 +#: src/ephy-window.c:118 msgid "_Close" msgstr "_Close" @@ -2261,28 +2260,28 @@ msgstr "Close the bookmarks window" #. Edit Menu #: src/bookmarks/ephy-bookmarks-editor.c:193 src/ephy-history-window.c:175 -#: src/ephy-window.c:122 +#: src/ephy-window.c:129 msgid "Cu_t" msgstr "Cu_t" #: src/bookmarks/ephy-bookmarks-editor.c:194 src/ephy-history-window.c:176 -#: src/ephy-window.c:123 +#: src/ephy-window.c:130 msgid "Cut the selection" msgstr "Cut the selection" #: src/bookmarks/ephy-bookmarks-editor.c:196 -#: src/bookmarks/ephy-bookmarks-editor.c:987 src/ephy-history-window.c:178 -#: src/ephy-history-window.c:748 src/ephy-window.c:125 +#: src/bookmarks/ephy-bookmarks-editor.c:998 src/ephy-history-window.c:178 +#: src/ephy-history-window.c:748 src/ephy-window.c:132 msgid "_Copy" msgstr "_Copy" #: src/bookmarks/ephy-bookmarks-editor.c:197 src/ephy-history-window.c:179 -#: src/ephy-window.c:126 +#: src/ephy-window.c:133 msgid "Copy the selection" msgstr "Copy the selection" #: src/bookmarks/ephy-bookmarks-editor.c:199 src/ephy-history-window.c:181 -#: src/ephy-window.c:128 +#: src/ephy-window.c:135 msgid "_Paste" msgstr "_Paste" @@ -2291,7 +2290,7 @@ msgid "Paste the clipboard" msgstr "Paste the clipboard" #: src/bookmarks/ephy-bookmarks-editor.c:202 src/ephy-history-window.c:184 -#: src/ephy-window.c:131 +#: src/ephy-window.c:138 msgid "Select _All" msgstr "Select _All" @@ -2301,7 +2300,7 @@ msgstr "Select all bookmarks or text" #. Help Menu #: src/bookmarks/ephy-bookmarks-editor.c:207 src/ephy-history-window.c:192 -#: src/ephy-window.c:222 +#: src/ephy-window.c:229 msgid "_Contents" msgstr "_Contents" @@ -2310,12 +2309,12 @@ msgid "Display bookmarks help" msgstr "Display bookmarks help" #: src/bookmarks/ephy-bookmarks-editor.c:210 src/ephy-history-window.c:195 -#: src/ephy-window.c:225 +#: src/ephy-window.c:232 msgid "_About" msgstr "_About" #: src/bookmarks/ephy-bookmarks-editor.c:211 src/ephy-history-window.c:196 -#: src/ephy-window.c:226 +#: src/ephy-window.c:233 msgid "Display credits for the web browser creators" msgstr "Display credits for the web browser creators" @@ -2349,68 +2348,68 @@ msgstr "Show both the title and address columns" msgid "Type a topic" msgstr "Type a topic" -#: src/bookmarks/ephy-bookmarks-editor.c:547 +#: src/bookmarks/ephy-bookmarks-editor.c:558 msgid "Import bookmarks from file" msgstr "Import bookmarks from file" -#: src/bookmarks/ephy-bookmarks-editor.c:580 +#: src/bookmarks/ephy-bookmarks-editor.c:591 msgid "Import Bookmarks" msgstr "Import Bookmarks" -#: src/bookmarks/ephy-bookmarks-editor.c:600 +#: src/bookmarks/ephy-bookmarks-editor.c:611 msgid "Choose the bookmarks source:" msgstr "Choose the bookmarks source:" -#: src/bookmarks/ephy-bookmarks-editor.c:618 +#: src/bookmarks/ephy-bookmarks-editor.c:629 msgid "Mozilla bookmarks" msgstr "Mozilla bookmarks" -#: src/bookmarks/ephy-bookmarks-editor.c:620 +#: src/bookmarks/ephy-bookmarks-editor.c:631 msgid "Firebird bookmarks" msgstr "Firebird bookmarks" -#: src/bookmarks/ephy-bookmarks-editor.c:622 +#: src/bookmarks/ephy-bookmarks-editor.c:633 msgid "Galeon bookmarks" msgstr "Galeon bookmarks" -#: src/bookmarks/ephy-bookmarks-editor.c:624 +#: src/bookmarks/ephy-bookmarks-editor.c:635 msgid "Konqueror bookmarks" msgstr "Konqueror bookmarks" -#: src/bookmarks/ephy-bookmarks-editor.c:628 +#: src/bookmarks/ephy-bookmarks-editor.c:639 msgid "Import from a file" msgstr "Import from a file" -#: src/bookmarks/ephy-bookmarks-editor.c:972 src/ephy-history-window.c:733 +#: src/bookmarks/ephy-bookmarks-editor.c:983 src/ephy-history-window.c:733 msgid "_Open in New Windows" msgstr "_Open in New Windows" -#: src/bookmarks/ephy-bookmarks-editor.c:973 src/ephy-history-window.c:734 +#: src/bookmarks/ephy-bookmarks-editor.c:984 src/ephy-history-window.c:734 msgid "Open in New _Tabs" msgstr "Open in New _Tabs" -#: src/bookmarks/ephy-bookmarks-editor.c:983 src/ephy-history-window.c:744 +#: src/bookmarks/ephy-bookmarks-editor.c:994 src/ephy-history-window.c:744 msgid "_Copy Address" msgstr "_Copy Address" -#: src/bookmarks/ephy-bookmarks-editor.c:1224 src/ephy-history-window.c:1038 +#: src/bookmarks/ephy-bookmarks-editor.c:1235 src/ephy-history-window.c:1038 msgid "_Search:" msgstr "_Search:" -#: src/bookmarks/ephy-bookmarks-editor.c:1357 -#: src/bookmarks/ephy-topic-action.c:597 src/ephy-window.c:953 +#: src/bookmarks/ephy-bookmarks-editor.c:1365 +#: src/bookmarks/ephy-topic-action.c:597 src/ephy-window.c:1014 msgid "Bookmarks" msgstr "Bookmarks" -#: src/bookmarks/ephy-bookmarks-editor.c:1440 +#: src/bookmarks/ephy-bookmarks-editor.c:1448 msgid "Topics" msgstr "Topics" -#: src/bookmarks/ephy-bookmarks-editor.c:1502 src/ephy-history-window.c:1318 +#: src/bookmarks/ephy-bookmarks-editor.c:1510 src/ephy-history-window.c:1318 msgid "Title" msgstr "Title" -#: src/bookmarks/ephy-bookmarks-editor.c:1509 src/ephy-history-window.c:1324 +#: src/bookmarks/ephy-bookmarks-editor.c:1517 src/ephy-history-window.c:1324 msgid "Address" msgstr "Address" @@ -2451,11 +2450,11 @@ msgstr "Travel" msgid "Work" msgstr "Work" -#: src/bookmarks/ephy-bookmarks.c:647 +#: src/bookmarks/ephy-bookmarks.c:680 msgid "Most Visited" msgstr "Most Visited" -#: src/bookmarks/ephy-bookmarks.c:664 +#: src/bookmarks/ephy-bookmarks.c:697 msgid "Not Categorized" msgstr "Not Categorised" @@ -2553,15 +2552,15 @@ msgstr "Show only the address column" msgid "Clear History" msgstr "Clear History" -#: src/ephy-history-window.c:278 +#: src/ephy-history-window.c:276 msgid "C_lear" msgstr "C_lear" -#: src/ephy-history-window.c:301 +#: src/ephy-history-window.c:300 msgid "Clear browsing history?" msgstr "Clear browsing history?" -#: src/ephy-history-window.c:308 +#: src/ephy-history-window.c:307 msgid "" "Clearing the browsing history will cause all history links to be permanently " "deleted." @@ -2590,69 +2589,69 @@ msgstr "History" msgid "Sites" msgstr "Sites" -#: src/ephy-main.c:55 +#: src/ephy-main.c:56 msgid "Open a new tab in an existing Epiphany window" msgstr "Open a new tab in an existing Epiphany window" -#: src/ephy-main.c:58 +#: src/ephy-main.c:59 msgid "Run Epiphany in full screen mode" msgstr "Run Epiphany in full screen mode" -#: src/ephy-main.c:61 +#: src/ephy-main.c:62 msgid "Load the given session file" msgstr "Load the given session file" -#: src/ephy-main.c:62 src/ephy-main.c:68 +#: src/ephy-main.c:63 src/ephy-main.c:69 msgid "FILE" msgstr "FILE" -#: src/ephy-main.c:64 +#: src/ephy-main.c:65 msgid "Add a bookmark (don't open any window)" msgstr "Add a bookmark (don't open any window)" -#: src/ephy-main.c:65 +#: src/ephy-main.c:66 msgid "URL" msgstr "URL" -#: src/ephy-main.c:67 +#: src/ephy-main.c:68 msgid "Import bookmarks from the given file" msgstr "Import bookmarks from the given file" -#: src/ephy-main.c:70 +#: src/ephy-main.c:71 msgid "Launch the bookmarks editor" msgstr "Launch the bookmarks editor" -#: src/ephy-main.c:73 +#: src/ephy-main.c:74 msgid "Used internally by the bonobo interface" msgstr "Used internally by the bonobo interface" -#: src/ephy-main.c:108 +#: src/ephy-main.c:109 msgid "Epiphany Web Browser" msgstr "Epiphany Web Browser" -#: src/ephy-main.c:112 +#: src/ephy-main.c:113 msgid "Ephy" msgstr "Epiphany" -#: src/ephy-session.c:299 +#: src/ephy-session.c:301 msgid "Crash Recovery" msgstr "Crash Recovery" -#: src/ephy-session.c:301 +#: src/ephy-session.c:303 msgid "_Don't Recover" msgstr "_Don't Recover" -#: src/ephy-session.c:302 +#: src/ephy-session.c:304 msgid "_Recover" msgstr "_Recover" -#: src/ephy-session.c:332 +#: src/ephy-session.c:335 msgid "" "Epiphany appears to have crashed or been killed the last time it was run." msgstr "" "Epiphany appears to have crashed or been killed the last time it was run." -#: src/ephy-session.c:338 +#: src/ephy-session.c:341 msgid "You can recover the opened tabs and windows." msgstr "You can recover the opened tabs and windows." @@ -2682,510 +2681,510 @@ msgstr "" "Epiphany can't be used now, due to an unexpected error from Bonobo when " "attempting to locate the automation object." -#: src/ephy-tab.c:327 src/ephy-tab.c:1172 src/ephy-tab.c:1354 +#: src/ephy-tab.c:369 src/ephy-tab.c:1208 src/ephy-tab.c:1378 msgid "Blank page" msgstr "Blank page" -#: src/ephy-tab.c:748 +#: src/ephy-tab.c:774 msgid "site" msgstr "site" -#: src/ephy-tab.c:772 +#: src/ephy-tab.c:798 #, c-format msgid "Redirecting to %s..." msgstr "Redirecting to %s..." -#: src/ephy-tab.c:776 +#: src/ephy-tab.c:802 #, c-format msgid "Transferring data from %s..." msgstr "Transferring data from %s..." -#: src/ephy-tab.c:780 +#: src/ephy-tab.c:806 #, c-format msgid "Waiting for authorization from %s..." msgstr "Waiting for authorisation from %s..." -#: src/ephy-tab.c:788 +#: src/ephy-tab.c:814 #, c-format msgid "Loading %s..." msgstr "Loading %s..." -#: src/ephy-window.c:79 +#: src/ephy-window.c:86 msgid "_Bookmarks" msgstr "_Bookmarks" -#: src/ephy-window.c:80 +#: src/ephy-window.c:87 msgid "_Go" msgstr "_Go" -#: src/ephy-window.c:81 +#: src/ephy-window.c:88 msgid "T_ools" msgstr "T_ools" -#: src/ephy-window.c:82 +#: src/ephy-window.c:89 msgid "_Tabs" msgstr "_Tabs" #. File menu -#: src/ephy-window.c:87 +#: src/ephy-window.c:94 msgid "_New Window" msgstr "_New Window" -#: src/ephy-window.c:88 +#: src/ephy-window.c:95 msgid "Open a new window" msgstr "Open a new window" -#: src/ephy-window.c:90 +#: src/ephy-window.c:97 msgid "New _Tab" msgstr "New _Tab" -#: src/ephy-window.c:91 +#: src/ephy-window.c:98 msgid "Open a new tab" msgstr "Open a new tab" -#: src/ephy-window.c:93 +#: src/ephy-window.c:100 msgid "_Open..." msgstr "_Open..." -#: src/ephy-window.c:94 +#: src/ephy-window.c:101 msgid "Open a file" msgstr "Open a file" -#: src/ephy-window.c:96 +#: src/ephy-window.c:103 msgid "Save _As..." msgstr "Save _As..." -#: src/ephy-window.c:97 +#: src/ephy-window.c:104 msgid "Save the current page" msgstr "Save the current page" -#: src/ephy-window.c:99 +#: src/ephy-window.c:106 msgid "Print Set_up..." msgstr "Print Set_up..." -#: src/ephy-window.c:100 +#: src/ephy-window.c:107 msgid "Setup the page settings for printing" msgstr "Setup the page settings for printing" -#: src/ephy-window.c:102 +#: src/ephy-window.c:109 msgid "Print Pre_view" msgstr "Print Pre_view" -#: src/ephy-window.c:103 +#: src/ephy-window.c:110 msgid "Print preview" msgstr "Print preview" -#: src/ephy-window.c:106 +#: src/ephy-window.c:113 msgid "Print the current page" msgstr "Print the current page" -#: src/ephy-window.c:108 +#: src/ephy-window.c:115 msgid "S_end To..." msgstr "S_end To..." -#: src/ephy-window.c:109 +#: src/ephy-window.c:116 msgid "Send a link of the current page" msgstr "Send a link of the current page" -#: src/ephy-window.c:112 +#: src/ephy-window.c:119 msgid "Close this window" msgstr "Close this window" #. Edit menu -#: src/ephy-window.c:116 +#: src/ephy-window.c:123 msgid "_Undo" msgstr "_Undo" -#: src/ephy-window.c:117 +#: src/ephy-window.c:124 msgid "Undo the last action" msgstr "Undo the last action" -#: src/ephy-window.c:119 +#: src/ephy-window.c:126 msgid "Re_do" msgstr "Re_do" -#: src/ephy-window.c:120 +#: src/ephy-window.c:127 msgid "Redo the last undone action" msgstr "Redo the last undone action" -#: src/ephy-window.c:129 +#: src/ephy-window.c:136 msgid "Paste clipboard" msgstr "Paste clipboard" -#: src/ephy-window.c:132 +#: src/ephy-window.c:139 msgid "Select the entire page" msgstr "Select the entire page" -#: src/ephy-window.c:135 +#: src/ephy-window.c:142 msgid "Find a word or phrase in the page" msgstr "Find a word or phrase in the page" -#: src/ephy-window.c:137 +#: src/ephy-window.c:144 msgid "Find Ne_xt" msgstr "Find Ne_xt" -#: src/ephy-window.c:138 +#: src/ephy-window.c:145 msgid "Find next occurrence of the word or phrase" msgstr "Find next occurrence of the word or phrase" -#: src/ephy-window.c:140 +#: src/ephy-window.c:147 msgid "Find Pre_vious" msgstr "Find Pre_vious" -#: src/ephy-window.c:141 +#: src/ephy-window.c:148 msgid "Find previous occurrence of the word or phrase" msgstr "Find previous occurrence of the word or phrase" -#: src/ephy-window.c:143 +#: src/ephy-window.c:150 msgid "P_ersonal Data" msgstr "P_ersonal Data" -#: src/ephy-window.c:144 +#: src/ephy-window.c:151 msgid "View and remove cookies and passwords" msgstr "View and remove cookies and passwords" -#: src/ephy-window.c:146 +#: src/ephy-window.c:153 msgid "T_oolbars" msgstr "T_oolbars" -#: src/ephy-window.c:147 +#: src/ephy-window.c:154 msgid "Customize toolbars" msgstr "Customise toolbars" -#: src/ephy-window.c:149 +#: src/ephy-window.c:156 msgid "P_references" msgstr "P_references" -#: src/ephy-window.c:150 +#: src/ephy-window.c:157 msgid "Configure the web browser" msgstr "Configure the web browser" #. View menu -#: src/ephy-window.c:154 +#: src/ephy-window.c:161 msgid "_Stop" msgstr "_Stop" -#: src/ephy-window.c:155 +#: src/ephy-window.c:162 msgid "Stop current data transfer" msgstr "Stop current data transfer" -#: src/ephy-window.c:157 +#: src/ephy-window.c:164 msgid "_Reload" msgstr "_Reload" -#: src/ephy-window.c:158 +#: src/ephy-window.c:165 msgid "Display the latest content of the current page" msgstr "Display the latest content of the current page" -#: src/ephy-window.c:160 +#: src/ephy-window.c:167 msgid "Zoom _In" msgstr "Zoom _In" -#: src/ephy-window.c:161 +#: src/ephy-window.c:168 msgid "Increase the text size" msgstr "Increase the text size" -#: src/ephy-window.c:163 +#: src/ephy-window.c:170 msgid "Zoom _Out" msgstr "Zoom _Out" -#: src/ephy-window.c:164 +#: src/ephy-window.c:171 msgid "Decrease the text size" msgstr "Decrease the text size" -#: src/ephy-window.c:166 +#: src/ephy-window.c:173 msgid "_Normal Size" msgstr "_Normal Size" -#: src/ephy-window.c:167 +#: src/ephy-window.c:174 msgid "Use the normal text size" msgstr "Use the normal text size" -#: src/ephy-window.c:169 +#: src/ephy-window.c:176 msgid "Text _Encoding" msgstr "Text _Encoding" -#: src/ephy-window.c:170 +#: src/ephy-window.c:177 msgid "Change the text encoding" msgstr "Change the text encoding" -#: src/ephy-window.c:172 +#: src/ephy-window.c:179 msgid "_Page Source" msgstr "_Page Source" -#: src/ephy-window.c:173 +#: src/ephy-window.c:180 msgid "View the source code of the page" msgstr "View the source code of the page" #. Bookmarks menu -#: src/ephy-window.c:177 +#: src/ephy-window.c:184 msgid "_Add Bookmark..." msgstr "_Add Bookmark..." -#: src/ephy-window.c:178 src/ephy-window.c:257 +#: src/ephy-window.c:185 src/ephy-window.c:264 msgid "Add a bookmark for the current page" msgstr "Add a bookmark for the current page" -#: src/ephy-window.c:180 +#: src/ephy-window.c:187 msgid "_Edit Bookmarks" msgstr "_Edit Bookmarks" -#: src/ephy-window.c:181 +#: src/ephy-window.c:188 msgid "Open the bookmarks window" msgstr "Open the bookmarks window" #. Go menu -#: src/ephy-window.c:185 +#: src/ephy-window.c:192 msgid "_Back" msgstr "_Back" -#: src/ephy-window.c:186 +#: src/ephy-window.c:193 msgid "Go to the previous visited page" msgstr "Go to the previous visited page" -#: src/ephy-window.c:188 +#: src/ephy-window.c:195 msgid "_Forward" msgstr "_Forward" -#: src/ephy-window.c:189 +#: src/ephy-window.c:196 msgid "Go to the next visited page" msgstr "Go to the next visited page" -#: src/ephy-window.c:192 +#: src/ephy-window.c:199 msgid "Go up one level" msgstr "Go up one level" -#: src/ephy-window.c:194 +#: src/ephy-window.c:201 msgid "_Home" msgstr "_Home" -#: src/ephy-window.c:195 +#: src/ephy-window.c:202 msgid "Go to the home page" msgstr "Go to the home page" -#: src/ephy-window.c:197 +#: src/ephy-window.c:204 msgid "_Location..." msgstr "_Location..." -#: src/ephy-window.c:198 +#: src/ephy-window.c:205 msgid "Go to a specified location" msgstr "Go to a specified location" -#: src/ephy-window.c:200 +#: src/ephy-window.c:207 msgid "H_istory" msgstr "H_istory" -#: src/ephy-window.c:201 +#: src/ephy-window.c:208 msgid "Open the history window" msgstr "Open the history window" #. Tabs menu -#: src/ephy-window.c:205 +#: src/ephy-window.c:212 msgid "_Previous Tab" msgstr "_Previous Tab" -#: src/ephy-window.c:206 +#: src/ephy-window.c:213 msgid "Activate previous tab" msgstr "Activate previous tab" -#: src/ephy-window.c:208 +#: src/ephy-window.c:215 msgid "_Next Tab" msgstr "_Next Tab" -#: src/ephy-window.c:209 +#: src/ephy-window.c:216 msgid "Activate next tab" msgstr "Activate next tab" -#: src/ephy-window.c:211 +#: src/ephy-window.c:218 msgid "Move Tab _Left" msgstr "Move Tab _Left" -#: src/ephy-window.c:212 +#: src/ephy-window.c:219 msgid "Move current tab to left" msgstr "Move current tab to left" -#: src/ephy-window.c:214 +#: src/ephy-window.c:221 msgid "Move Tab _Right" msgstr "Move Tab _Right" -#: src/ephy-window.c:215 +#: src/ephy-window.c:222 msgid "Move current tab to right" msgstr "Move current tab to right" -#: src/ephy-window.c:217 +#: src/ephy-window.c:224 msgid "_Detach Tab" msgstr "_Detach Tab" -#: src/ephy-window.c:218 +#: src/ephy-window.c:225 msgid "Detach current tab" msgstr "Detach current tab" -#: src/ephy-window.c:223 +#: src/ephy-window.c:230 msgid "Display web browser help" msgstr "Display web browser help" #. View Menu -#: src/ephy-window.c:234 +#: src/ephy-window.c:241 msgid "_Toolbar" msgstr "_Toolbar" -#: src/ephy-window.c:235 +#: src/ephy-window.c:242 msgid "Show or hide toolbar" msgstr "Show or hide toolbar" -#: src/ephy-window.c:237 +#: src/ephy-window.c:244 msgid "_Bookmarks Bar" msgstr "_Bookmarks Bar" -#: src/ephy-window.c:238 +#: src/ephy-window.c:245 msgid "Show or hide bookmarks bar" msgstr "Show or hide bookmarks bar" -#: src/ephy-window.c:240 +#: src/ephy-window.c:247 msgid "St_atusbar" msgstr "St_atusbar" -#: src/ephy-window.c:241 +#: src/ephy-window.c:248 msgid "Show or hide statusbar" msgstr "Show or hide statusbar" -#: src/ephy-window.c:243 +#: src/ephy-window.c:250 msgid "_Fullscreen" msgstr "_Full Screen" -#: src/ephy-window.c:244 +#: src/ephy-window.c:251 msgid "Browse at full screen" msgstr "Browse at full screen" -#: src/ephy-window.c:246 +#: src/ephy-window.c:253 msgid "Selection Caret" msgstr "Selection Caret" #. Document -#: src/ephy-window.c:254 +#: src/ephy-window.c:261 msgid "_Save Background As..." msgstr "_Save Background As..." -#: src/ephy-window.c:256 +#: src/ephy-window.c:263 msgid "Add Boo_kmark..." msgstr "Add Boo_kmark..." #. Framed document -#: src/ephy-window.c:261 +#: src/ephy-window.c:268 msgid "_Open Frame" msgstr "_Open Frame" -#: src/ephy-window.c:263 +#: src/ephy-window.c:270 msgid "Open Frame in _New Window" msgstr "Open Frame in _New Window" -#: src/ephy-window.c:265 +#: src/ephy-window.c:272 msgid "Open Frame in New _Tab" msgstr "Open Frame in New _Tab" #. Links -#: src/ephy-window.c:269 +#: src/ephy-window.c:276 msgid "_Open Link" msgstr "_Open Link" -#: src/ephy-window.c:271 +#: src/ephy-window.c:278 msgid "Open Link in _New Window" msgstr "Open Link in _New Window" -#: src/ephy-window.c:273 +#: src/ephy-window.c:280 msgid "Open Link in New _Tab" msgstr "Open Link in New _Tab" -#: src/ephy-window.c:275 +#: src/ephy-window.c:282 msgid "_Download Link" msgstr "_Download Link" -#: src/ephy-window.c:277 +#: src/ephy-window.c:284 msgid "_Save Link As..." msgstr "_Save Link As..." -#: src/ephy-window.c:279 +#: src/ephy-window.c:286 msgid "_Bookmark Link..." msgstr "_Bookmark Link..." -#: src/ephy-window.c:281 +#: src/ephy-window.c:288 msgid "_Copy Link Address" msgstr "_Copy Link Address" #. Images -#: src/ephy-window.c:285 +#: src/ephy-window.c:292 msgid "Open _Image" msgstr "Open _Image" -#: src/ephy-window.c:287 +#: src/ephy-window.c:294 msgid "Open Image in New _Window" msgstr "Open Image in New _Window" -#: src/ephy-window.c:289 +#: src/ephy-window.c:296 msgid "Open Image in New T_ab" msgstr "Open Image in New T_ab" -#: src/ephy-window.c:291 +#: src/ephy-window.c:298 msgid "_Save Image As..." msgstr "_Save Image As..." -#: src/ephy-window.c:293 +#: src/ephy-window.c:300 msgid "_Use Image As Background" msgstr "_Use Image As Background" -#: src/ephy-window.c:295 +#: src/ephy-window.c:302 msgid "Copy I_mage Address" msgstr "Copy I_mage Address" -#: src/ephy-window.c:584 +#: src/ephy-window.c:545 msgid "Exit Fullscreen" msgstr "Exit Full Screen" -#: src/ephy-window.c:658 +#: src/ephy-window.c:619 msgid "_Close document" msgstr "_Close document" -#: src/ephy-window.c:685 +#: src/ephy-window.c:646 msgid "There are unsubmitted changes to form elements." msgstr "There are unsubmitted changes to form elements." -#: src/ephy-window.c:686 +#: src/ephy-window.c:647 msgid "If you close the document anyway, you will lose that information." msgstr "If you close the document anyway, you will lose that information." -#: src/ephy-window.c:943 src/window-commands.c:392 +#: src/ephy-window.c:1004 src/window-commands.c:395 msgid "Open" msgstr "Open" -#: src/ephy-window.c:945 src/window-commands.c:417 +#: src/ephy-window.c:1006 src/window-commands.c:420 msgid "Save As" msgstr "Save As" -#: src/ephy-window.c:949 +#: src/ephy-window.c:1010 msgid "Bookmark" msgstr "Bookmark" -#: src/ephy-window.c:1135 +#: src/ephy-window.c:1196 msgid "Insecure" msgstr "Insecure" -#: src/ephy-window.c:1138 +#: src/ephy-window.c:1199 msgid "Broken" msgstr "Broken" -#: src/ephy-window.c:1141 +#: src/ephy-window.c:1202 msgid "Medium" msgstr "Medium" -#: src/ephy-window.c:1145 +#: src/ephy-window.c:1206 msgid "Low" msgstr "Low" -#: src/ephy-window.c:1149 +#: src/ephy-window.c:1210 msgid "High" msgstr "High" -#: src/ephy-window.c:1159 +#: src/ephy-window.c:1220 #, c-format msgid "" "Security level: %s\n" @@ -3194,7 +3193,7 @@ msgstr "" "Security level: %s\n" "%s" -#: src/ephy-window.c:1165 +#: src/ephy-window.c:1226 #, c-format msgid "Security level: %s" msgstr "Security level: %s" @@ -3535,20 +3534,20 @@ msgstr "Go to the address entered in the address entry" msgid "Check this out!" msgstr "Check this out!" -#: src/window-commands.c:878 +#: src/window-commands.c:851 msgid "Toolbar Editor" msgstr "Toolbar Editor" -#: src/window-commands.c:900 +#: src/window-commands.c:873 msgid "_Add a New Toolbar" msgstr "_Add a New Toolbar" #. Translator credits -#: src/window-commands.c:952 +#: src/window-commands.c:924 msgid "translator-credits" msgstr "Christian Persch <chpe@gnome.org>" -#: src/window-commands.c:982 +#: src/window-commands.c:954 msgid "A GNOME browser based on Mozilla" msgstr "A GNOME web browser based on Mozilla" diff --git a/src/ephy-window.c b/src/ephy-window.c index 9730e9ddd..ca9c0b9e7 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -342,7 +342,6 @@ struct EphyWindowPrivate guint help_message_cid; EphyEmbedChrome chrome; - gboolean show_bookmarksbar; gboolean should_save_chrome; guint disable_arbitrary_url_notifier_id; @@ -461,7 +460,8 @@ exit_fullscreen_button_clicked_cb (GtkWidget *button, EphyWindow *window) static void get_chromes_visibility (EphyWindow *window, gboolean *show_menubar, - gboolean *show_statusbar, gboolean *show_toolbar) + gboolean *show_statusbar, gboolean *show_toolbar, + gboolean *show_bookmarksbar) { EphyEmbedChrome flags = window->priv->chrome; @@ -471,13 +471,14 @@ get_chromes_visibility (EphyWindow *window, gboolean *show_menubar, *show_menubar = flags & EPHY_EMBED_CHROME_MENUBAR; *show_statusbar = flags & EPHY_EMBED_CHROME_STATUSBAR; *show_toolbar = flags & EPHY_EMBED_CHROME_TOOLBAR; + *show_bookmarksbar = flags & EPHY_EMBED_CHROME_BOOKMARKSBAR; break; case EPHY_WINDOW_MODE_FULLSCREEN: *show_toolbar = flags & EPHY_EMBED_CHROME_TOOLBAR; - *show_menubar = *show_statusbar = FALSE; + *show_menubar = *show_statusbar = *show_bookmarksbar = FALSE; break; default: - *show_menubar = *show_statusbar = *show_toolbar = FALSE; + *show_menubar = *show_statusbar = *show_toolbar = *show_bookmarksbar = FALSE; } } @@ -485,10 +486,11 @@ static void sync_chromes_visibility (EphyWindow *window) { GtkWidget *menubar; - gboolean show_statusbar, show_menubar, show_toolbar; + gboolean show_statusbar, show_menubar, show_toolbar, show_bookmarksbar; get_chromes_visibility (window, &show_menubar, - &show_statusbar, &show_toolbar); + &show_statusbar, &show_toolbar, + &show_bookmarksbar); menubar = gtk_ui_manager_get_widget (GTK_UI_MANAGER (window->ui_merge), "/menubar"); @@ -504,7 +506,7 @@ sync_chromes_visibility (EphyWindow *window) } toolbar_set_visibility (window->priv->toolbar, show_toolbar, - window->priv->show_bookmarksbar); + show_bookmarksbar); if (show_statusbar) @@ -869,10 +871,11 @@ update_chromes_actions (EphyWindow *window) { GtkActionGroup *action_group = GTK_ACTION_GROUP (window->priv->action_group); GtkAction *action; - gboolean show_statusbar, show_menubar, show_toolbar; + gboolean show_statusbar, show_menubar, show_toolbar, show_bookmarksbar; get_chromes_visibility (window, &show_menubar, - &show_statusbar, &show_toolbar); + &show_statusbar, &show_toolbar, + &show_bookmarksbar); action = gtk_action_group_get_action (action_group, "ViewToolbar"); g_signal_handlers_block_by_func (G_OBJECT (action), @@ -887,8 +890,7 @@ update_chromes_actions (EphyWindow *window) g_signal_handlers_block_by_func (G_OBJECT (action), G_CALLBACK (ephy_window_view_bookmarksbar_cb), window); - gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), - window->priv->show_bookmarksbar); + gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), show_bookmarksbar); g_signal_handlers_unblock_by_func (G_OBJECT (action), G_CALLBACK (ephy_window_view_bookmarksbar_cb), window); @@ -1745,6 +1747,11 @@ get_default_chrome (void) chrome_mask |= EPHY_EMBED_CHROME_MENUBAR; } + if (eel_gconf_get_boolean (CONF_WINDOWS_SHOW_BOOKMARKS_BAR)) + { + chrome_mask |= EPHY_EMBED_CHROME_BOOKMARKSBAR; + } + return chrome_mask; } @@ -1921,8 +1928,6 @@ ephy_window_init (EphyWindow *window) window->priv->has_size = FALSE; window->priv->should_save_chrome = FALSE; window->priv->mode = EPHY_WINDOW_MODE_NORMAL; - window->priv->show_bookmarksbar = - eel_gconf_get_boolean (CONF_WINDOWS_SHOW_BOOKMARKS_BAR); ensure_default_icon (); @@ -2457,7 +2462,7 @@ sync_prefs_with_chrome (EphyWindow *window) if (window->priv->should_save_chrome) { eel_gconf_set_boolean (CONF_WINDOWS_SHOW_BOOKMARKS_BAR, - window->priv->show_bookmarksbar); + flags & EPHY_EMBED_CHROME_BOOKMARKSBAR); eel_gconf_set_boolean (CONF_WINDOWS_SHOW_TOOLBARS, flags & EPHY_EMBED_CHROME_TOOLBAR); eel_gconf_set_boolean (CONF_WINDOWS_SHOW_STATUSBAR, @@ -2499,8 +2504,6 @@ static void ephy_window_view_bookmarksbar_cb (GtkAction *action, EphyWindow *window) { - window->priv->show_bookmarksbar = gtk_toggle_action_get_active - (GTK_TOGGLE_ACTION (action)); - sync_chromes_visibility (window); - sync_prefs_with_chrome (window); + sync_chrome_with_view_toggle (action, window, + EPHY_EMBED_CHROME_BOOKMARKSBAR); } |