[Trisquel-devel] [PATCH] Added OpenSUSE patches for Abrowser KDE support.
Legimet
legimet.calc at gmail.com
Sat Mar 29 00:51:33 CET 2014
BTW, the upstream source for abrowser-kde.patch and mozilla-kde.patch is at
https://build.opensuse.org/package/show/openSUSE:Factory/MozillaFirefox. The
patches will have to be updated for each new release of Firefox, and modified
a little for Abrowser.
The kmozillahelper source is located at
https://build.opensuse.org/package/show/openSUSE:Factory/mozilla-kde4-
integration, and my source package, which can be found in the issue thread, is
modified from the PPA blue-shell:firefox-kde.
Legimet
On Thursday, March 27, 2014 09:19:51 PM Legimet wrote:
> Here is a patch adding KDE support to Abrowser (the relevant issue is at
> https://trisquel.info/en/issues/11035). Besides this patch, a package
> kmozillahelper is needed.
>
> Legimet
>
> ---
> helpers/DATA/firefox/abrowser-kde.patch | 1789 +++++++++++++++
> helpers/DATA/firefox/mozilla-kde.patch | 3707
> +++++++++++++++++++++++++++++++
> helpers/make-firefox | 14 +-
> 3 files changed, 5509 insertions(+), 1 deletion(-)
> create mode 100644 helpers/DATA/firefox/abrowser-kde.patch
> create mode 100644 helpers/DATA/firefox/mozilla-kde.patch
>
> diff --git a/helpers/DATA/firefox/abrowser-kde.patch
> b/helpers/DATA/firefox/abrowser-kde.patch
> new file mode 100644
> index 0000000..d076e73
> --- /dev/null
> +++ b/helpers/DATA/firefox/abrowser-kde.patch
> @@ -0,0 +1,1789 @@
> +diff --git a/browser/base/content/browser-kde.xul
> b/browser/base/content/browser-kde.xul
> +new file mode 100644
> +--- /dev/null
> ++++ b/browser/base/content/browser-kde.xul
> +@@ -0,0 +1,1177 @@
> ++#filter substitution
> ++<?xml version="1.0"?>
> ++# -*- Mode: HTML -*-
> ++#
> ++# This Source Code Form is subject to the terms of the Mozilla Public
> ++# License, v. 2.0. If a copy of the MPL was not distributed with this
> ++# file, You can obtain one at http://mozilla.org/MPL/2.0/.
> ++
> ++<?xml-stylesheet href="chrome://browser/content/browser.css"
> type="text/css"?>
> ++<?xml-stylesheet href="chrome://browser/content/places/places.css"
> type="text/css"?>
> ++<?xml-stylesheet href="chrome://browser/skin/devtools/common.css"
> type="text/css"?>
> ++<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
> ++
> ++<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
> ++<?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
> ++<?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
> ++
> ++# All DTD information is stored in a separate file so that it can be
> shared by
> ++# hiddenWindow.xul.
> ++#include browser-doctype.inc
> ++
> ++<window id="main-window"
> ++ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> ++ xmlns:svg="http://www.w3.org/2000/svg"
> ++ xmlns:html="http://www.w3.org/1999/xhtml"
> ++
> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
> ++ onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()"
> onclose="return WindowIsClosing();"
> ++ title="&mainWindow.title;"
> ++ title_normal="&mainWindow.title;"
> ++#ifdef XP_MACOSX
> ++
>
title_privatebrowsing="&mainWindow.title;&mainWindow.titlemodifiermenusepara
> tor;&mainWindow.titlePrivateBrowsingSuffix;" ++
> titledefault="&mainWindow.title;"
> ++ titlemodifier=""
> ++ titlemodifier_normal=""
> ++
> titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
> ++#else
> ++ title_privatebrowsing="&mainWindow.titlemodifier;
> &mainWindow.titlePrivateBrowsingSuffix;"
> ++ titlemodifier="&mainWindow.titlemodifier;"
> ++ titlemodifier_normal="&mainWindow.titlemodifier;"
> ++ titlemodifier_privatebrowsing="&mainWindow.titlemodifier;
> &mainWindow.titlePrivateBrowsingSuffix;"
> ++#endif
> ++ titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
> ++ lightweightthemes="true"
> ++ lightweightthemesfooter="browser-bottombox"
> ++ windowtype="navigator:browser"
> ++ macanimationtype="document"
> ++ screenX="4" screenY="4"
> ++ fullscreenbutton="true"
> ++ persist="screenX screenY width height sizemode">
> ++
> ++# All JS files which are not content (only) dependent that browser.xul
> ++# wishes to include *must* go into the global-scripts.inc file
> ++# so that they can be shared by macBrowserOverlay.xul.
> ++#include global-scripts.inc
> ++<script type="application/javascript"
> src="chrome://browser/content/nsContextMenu.js"/>
> ++
> ++<script type="application/javascript"
> src="chrome://global/content/contentAreaUtils.js"/>
> ++
> ++<script type="application/javascript"
> src="chrome://browser/content/places/editBookmarkOverlay.js"/>
> ++
> ++# All sets except for popupsets (commands, keys, stringbundles and
> broadcasters) *must* go into the
> ++# browser-sets.inc file for sharing with hiddenWindow.xul.
> ++#define FULL_BROWSER_WINDOW
> ++#include browser-sets.inc
> ++#undef FULL_BROWSER_WINDOW
> ++
> ++ <popupset id="mainPopupSet">
> ++ <menupopup id="tabContextMenu"
> ++ onpopupshowing="if (event.target == this)
> TabContextMenu.updateContextMenu(this);"
> ++ onpopuphidden="if (event.target == this)
> TabContextMenu.contextTab = null;">
> ++ <menuitem id="context_reloadTab" label="&reloadTab.label;"
> accesskey="&reloadTab.accesskey;"
> ++
> oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/> ++
> <menuseparator/>
> ++ <menuitem id="context_pinTab" label="&pinTab.label;"
> ++ accesskey="&pinTab.accesskey;"
> ++ oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
> ++ <menuitem id="context_unpinTab" label="&unpinTab.label;"
> hidden="true" ++ accesskey="&unpinTab.accesskey;"
> ++
> oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/> ++
<menu
> id="context_tabViewMenu" label="&moveToGroup.label;" ++
> accesskey="&moveToGroup.accesskey;">
> ++ <menupopup id="context_tabViewMenuPopup"
> ++ onpopupshowing="if (event.target == this)
More information about the Trisquel-devel
mailing list