updated browser-kde.xul (fixing KDE issue)
authorWolfgang Rosenauer <wr@rosenauer.org>
Sat, 27 Oct 2012 10:52:19 +0200
changeset 571 cd2592a5c15d
parent 568 2c74c5927ea2
child 572 edcb48108200
updated browser-kde.xul (fixing KDE issue)
firefox-kde.patch
--- a/firefox-kde.patch	Fri Oct 26 13:01:33 2012 +0200
+++ b/firefox-kde.patch	Sat Oct 27 10:52:19 2012 +0200
@@ -2,7 +2,7 @@
 new file mode 100644
 --- /dev/null
 +++ b/browser/base/content/browser-kde.xul
-@@ -0,0 +1,1264 @@
+@@ -0,0 +1,1269 @@
 +#filter substitution
 +<?xml version="1.0"?>
 +# -*- Mode: HTML -*-
@@ -76,11 +76,11 @@
 +      <menuitem id="context_reloadTab" label="&reloadTab.label;" accesskey="&reloadTab.accesskey;"
 +                oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
 +      <menuseparator/>
-+      <menuitem id="context_pinTab" label="&pinAppTab.label;"
-+                accesskey="&pinAppTab.accesskey;"
++      <menuitem id="context_pinTab" label="&pinTab.label;"
++                accesskey="&pinTab.accesskey;"
 +                oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
-+      <menuitem id="context_unpinTab" label="&unpinAppTab.label;" hidden="true"
-+                accesskey="&unpinAppTab.accesskey;"
++      <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;">
@@ -195,7 +195,7 @@
 +          <description id="social-activation-message" class="popup-notification-description"/>
 +          <spacer flex="1"/>
 +          <hbox pack="end" align="center" class="popup-notification-button-container">
-+#ifdef XP_UNIX
++#ifndef XP_UNIX
 +        <button id="social-undoactivation-button"
 +                label="&social.activated.undobutton.label;"
 +                accesskey="&social.activated.undobutton.accesskey;"
@@ -221,7 +221,7 @@
 +      </hbox>
 +    </panel>
 +
-+    <panel id="editSharePopup"
++    <panel id="unsharePopup"
 +           type="arrow"
 +           orient="vertical"
 +           ignorekeys="true"
@@ -229,54 +229,52 @@
 +           onpopupshown="SocialShareButton.panelShown(event);"
 +           consumeoutsideclicks="true"
 +           level="top">
-+      <row id="editSharePopupHeader" align="center">
++      <!-- Note that 'label', 'accesskey', 'value' and 'aria-label' attributes
++           for many of these elements are supplied by the provider and filled
++           in at runtime
++      -->
++      <row id="unsharePopupHeader" align="center">
 +        <vbox align="center">
-+          <image id="socialUserPortrait" onclick="SocialUI.showProfile();"
-+                 aria-label="&social.sharePopup.portrait.arialabel;"/>
++          <image id="socialUserPortrait" onclick="SocialUI.showProfile();"/>
 +        </vbox>
-+        <vbox id="editSharePopupText">
-+          <button id="socialUserDisplayName"
++        <vbox id="unsharePopupText">
++          <button id="socialUserDisplayName" pack="start"
 +                  oncommand="SocialUI.showProfile();"/>
 +          <spacer flex="1"/>
-+          <label id="socialUserRecommendedText"
-+                 value="&social.sharePopup.shared.label;"/>
++          <label id="socialUserRecommendedText"/>
 +        </vbox>
 +      </row>
-+      <hbox id="editSharePopupBottomButtons" pack="end">
-+#ifdef XP_UNIX
-+        <button id="editSharePopupUndoButton"
-+                class="editSharePopupBottomButton"
-+                label="&social.sharePopup.undo.label;"
-+                accesskey="&social.sharePopup.undo.accesskey;"
++      <hbox id="unsharePopupBottomButtons" pack="end">
++#ifndef XP_UNIX
++        <button id="unsharePopupStopSharingButton"
++                class="unsharePopupBottomButton"
 +                command="Social:UnsharePage"/>
-+        <button id="editSharePopupOkButton"
-+                class="editSharePopupBottomButton"
++        <button id="unsharePopupContinueSharingButton"
++                class="unsharePopupBottomButton"
 +                default="true"
 +                autofocus="autofocus"
-+                label="&social.ok.label;"
-+                accesskey="&social.ok.accesskey;"
-+                oncommand="SocialShareButton.dismissSharePopup();"/>
++                oncommand="SocialShareButton.dismissUnsharePopup();"/>
 +#else
-+        <button id="editSharePopupOkButton"
-+                class="editSharePopupBottomButton"
++        <button id="unsharePopupContinueSharingButton"
++                class="unsharePopupBottomButton"
 +                default="true"
 +                autofocus="autofocus"
-+                label="&social.ok.label;"
-+                accesskey="&social.ok.accesskey;"
-+                oncommand="SocialShareButton.dismissSharePopup();"/>
-+        <button id="editSharePopupUndoButton"
-+                class="editSharePopupBottomButton"
-+                label="&social.sharePopup.undo.label;"
-+                accesskey="&social.sharePopup.undo.accesskey;"
++                oncommand="SocialShareButton.dismissUnsharePopup();"/>
++        <button id="unsharePopupStopSharingButton"
++                class="unsharePopupBottomButton"
 +                command="Social:UnsharePage"/>
 +#endif
 +      </hbox>
 +    </panel>
 +
-+    <panel id="social-notification-panel" type="arrow" hidden="true" noautofocus="true">
-+      <box id="social-notification-box" flex="1"></box>
-+    </panel>
++    <panel id="social-notification-panel"
++           class="social-panel"
++           type="arrow"
++           hidden="true"
++           consumeoutsideclicks="true"
++           noautofocus="true"/>
 +    <panel id="social-flyout-panel"
++           class="social-panel"
 +           onpopupshown="SocialFlyout.onShown()"
 +           onpopuphidden="SocialFlyout.onHidden()"
 +           side="right"
@@ -404,10 +402,6 @@
 +      </hbox>
 +    </panel>
 +
-+    <tooltip id="urlTooltip">
-+      <label crop="center" flex="1" class="tooltip-label"/>
-+    </tooltip>
-+
 +    <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
 +      <hbox>
 +        <button class="ctrlTab-preview" flex="1"/>
@@ -669,35 +663,41 @@
 +                     onclick="BrowserGoHome(event);"
 +                     aboutHomeOverrideTooltip="&abouthome.pageTitle;"/>
 +
-+      <toolbaritem id="social-toolbar-button"
-+                   class="toolbarbutton-1 chromeclass-toolbar-additional"
++      <toolbaritem id="social-toolbar-item"
++                   class="chromeclass-toolbar-additional"
 +                   removable="false"
-+                   pack="center"
 +                   title="&socialToolbar.title;"
 +                   hidden="true">
-+        <hbox id="social-toolbar-button-box" class="social-statusarea-container">
-+          <button id="social-provider-image" type="menu">
-+            <menupopup id="social-statusarea-popup">
-+              <hbox id="social-statusarea-user" pack="left" align="center">
-+                <image id="social-statusarea-user-portrait"/>
-+                <vbox>
-+                  <label id="social-statusarea-notloggedin"
-+                         value="&social.notLoggedIn.label;"/>
-+                  <button id="social-statusarea-username"
-+                          oncommand="SocialUI.showProfile(); document.getElementById('social-statusarea-popup').hidePopup();"/>
-+                </vbox>
-+              </hbox>
-+              <menuitem id="social-toggle-sidebar-menuitem"
-+                        type="checkbox"
-+                        autocheck="false"
-+                        command="Social:ToggleSidebar"
-+                        label="&social.toggleSidebar.label;"
-+                        accesskey="&social.toggleSidebar.accesskey;"/>
-+            </menupopup>
-+          </button>
-+          <hbox id="social-status-iconbox" flex="1">
-+          </hbox>
-+        </hbox>
++        <toolbarbutton id="social-provider-button"
++                       class="toolbarbutton-1"
++                       type="menu">
++          <menupopup id="social-statusarea-popup">
++            <menuitem id="social-statusarea-user" pack="start" align="center" class="menuitem-iconic"
++                  onclick="SocialUI.showProfile(); document.getElementById('social-statusarea-popup').hidePopup();">
++              <image id="social-statusarea-user-portrait"/>
++              <vbox>
++                <label id="social-statusarea-notloggedin"
++                       value="&social.notLoggedIn.label;"/>
++                <label id="social-statusarea-username"/>
++              </vbox>
++            </menuitem>
++#ifndef XP_WIN
++            <menuseparator/>
++#endif
++            <menuitem id="social-toggle-sidebar-menuitem"
++                      type="checkbox"
++                      autocheck="false"
++                      command="Social:ToggleSidebar"
++                      label="&social.toggleSidebar.label;"
++                      accesskey="&social.toggleSidebar.accesskey;"/>
++            <menuitem id="social-toggle-notifications-menuitem"
++                      type="checkbox"
++                      autocheck="false"
++                      command="Social:ToggleNotifications"
++                      label="&social.toggleNotifications.label;"
++                      accesskey="&social.toggleNotifications.accesskey;"/>
++          </menupopup>
++        </toolbarbutton>
 +      </toolbaritem>
 +
 +      <toolbaritem id="bookmarks-menu-button-container"
@@ -1070,7 +1070,12 @@
 +          style="min-width: 18em; width: 22em; max-width: 42em;" persist="width">
 +      <toolbar id="devtools-sidebar-toolbar"
 +               class="devtools-toolbar"
-+               nowindowdrag="true"/>
++               nowindowdrag="true">
++        <spacer flex="1"/>
++        <toolbarbutton tooltiptext="&inspectSidebarCloseButton.tooltiptext;"
++                       class="devtools-closebutton"
++                       command="Inspector:Sidebar"/>
++      </toolbar>
 +      <deck id="devtools-sidebar-deck" flex="1"/>
 +    </vbox>
 +    <splitter id="social-sidebar-splitter"