diff options
author | Ruben Rodriguez <ruben@trisquel.info> | 2022-09-08 20:35:27 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@trisquel.info> | 2022-09-08 20:35:27 -0400 |
commit | 34d10f8767c087221798c33410abc75d4da96c9b (patch) | |
tree | 58945bf22707600aea5057b53cd1bbc5ff5ae1a6 | |
parent | c93596f6288dd4130ab6b4f3b5063c9da1eb3c98 (diff) | |
download | gnuzilla-34d10f8767c087221798c33410abc75d4da96c9b.tar.gz |
Add 'IceCat Settings' entry to application menus
-rw-r--r-- | data/patches/icecat-preferences.patch | 29 | ||||
-rwxr-xr-x | makeicecat | 3 |
2 files changed, 31 insertions, 1 deletions
diff --git a/data/patches/icecat-preferences.patch b/data/patches/icecat-preferences.patch index 46bfa8b..dc39a98 100644 --- a/data/patches/icecat-preferences.patch +++ b/data/patches/icecat-preferences.patch @@ -6,7 +6,7 @@ +<!-- IceCat-specific privacy group --> +<groupbox id="iceCatPrivacyGroup" -+ data-category="panePrivacy" ++ data-category="panePrivacy" data-subcategory="icecatPreferences" + hidden="true"> + <label><html:h2 data-l10n-id="icecat-privacy-group-header"/></label> + <vbox> @@ -184,3 +184,30 @@ // CONTENT BLOCKING /** +diff -ru icecat-91.13.0/browser/base/content/appmenu-viewcache.inc.xhtml icecat-91.13.0.orig/browser/base/content/appmenu-viewcache.inc.xhtml +--- icecat-91.13.0/browser/base/content/appmenu-viewcache.inc.xhtml 2022-08-30 20:57:37.511721105 -0400 ++++ icecat-91.13.0.orig/browser/base/content/appmenu-viewcache.inc.xhtml 2022-08-30 20:52:39.076545425 -0400 +@@ -336,6 +336,10 @@ + key="key_preferencesCmdMac" + #endif + /> ++ <toolbarbutton id="appMenu-icecatsettings-button" ++ class="subviewbutton" ++ data-l10n-id="appmenuitem-icecat-settings" ++ /> + <toolbarbutton id="appMenu-more-button2" + class="subviewbutton subviewbutton-nav" + data-l10n-id="appmenuitem-more-tools" +diff -ru icecat-91.13.0.orig/browser/base/content/browser-menubar.inc icecat-91.13.0/browser/base/content/browser-menubar.inc +--- icecat-91.13.0.orig/browser/base/content/browser-menubar.inc 2022-08-30 21:06:25.143226477 -0400 ++++ icecat-91.13.0/browser/base/content/browser-menubar.inc 2022-08-30 21:06:10.103469430 -0400 +@@ -139,6 +139,9 @@ + /> + #endif + #endif ++ <menuitem id="menu_icecat_preferences" ++ ++ data-l10n-id="appmenuitem-icecat-settings"/> + </menupopup> + </menu> + @@ -445,6 +445,9 @@ EOF cp "${DATADIR}"/newtab/*.ico browser/components/newtab/data/content/tippytop/favicons/ cp "${DATADIR}"/newtab/*.png browser/components/newtab/data/content/tippytop/images/ + + # IceCat menu l10n + /bin/sed '/appmenuitem-settings/,+1s/\(.*.label = \)\(.*\)/\1\2\nappmenuitem-icecat-settings =\n\1IceCat \2/' -i ./l10n/*/browser/browser/appmenu.ftl ./browser/locales/en-US/browser/appmenu.ftl } configure_search() |