firefox-kde.patch
changeset 703 c4aab80e472f
parent 691 18c2dc922e51
child 716 cef565f1c325
equal deleted inserted replaced
700:52284fd63667 703:c4aab80e472f
     1 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     1 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     2 new file mode 100644
     2 new file mode 100644
     3 --- /dev/null
     3 --- /dev/null
     4 +++ b/browser/base/content/browser-kde.xul
     4 +++ b/browser/base/content/browser-kde.xul
     5 @@ -0,0 +1,1184 @@
     5 @@ -0,0 +1,1177 @@
     6 +#filter substitution
     6 +#filter substitution
     7 +<?xml version="1.0"?>
     7 +<?xml version="1.0"?>
     8 +# -*- Mode: HTML -*-
     8 +# -*- Mode: HTML -*-
     9 +#
     9 +#
    10 +# This Source Code Form is subject to the terms of the Mozilla Public
    10 +# This Source Code Form is subject to the terms of the Mozilla Public
    28 +        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    28 +        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    29 +        xmlns:svg="http://www.w3.org/2000/svg"
    29 +        xmlns:svg="http://www.w3.org/2000/svg"
    30 +        xmlns:html="http://www.w3.org/1999/xhtml"
    30 +        xmlns:html="http://www.w3.org/1999/xhtml"
    31 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    31 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    32 +        onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();"
    32 +        onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();"
    33 +        title="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
    33 +        title="&mainWindow.title;"
    34 +        title_normal="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
    34 +        title_normal="&mainWindow.title;"
    35 +#ifdef XP_MACOSX
    35 +#ifdef XP_MACOSX
    36 +        title_privatebrowsing="&mainWindow.title;@PRE_RELEASE_SUFFIX@&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
    36 +        title_privatebrowsing="&mainWindow.title;&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
    37 +        titledefault="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
    37 +        titledefault="&mainWindow.title;"
    38 +        titlemodifier=""
    38 +        titlemodifier=""
    39 +        titlemodifier_normal=""
    39 +        titlemodifier_normal=""
    40 +        titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
    40 +        titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
    41 +#else
    41 +#else
    42 +        title_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
    42 +        title_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
    43 +        titlemodifier="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
    43 +        titlemodifier="&mainWindow.titlemodifier;"
    44 +        titlemodifier_normal="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
    44 +        titlemodifier_normal="&mainWindow.titlemodifier;"
    45 +        titlemodifier_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
    45 +        titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
    46 +#endif
    46 +#endif
    47 +        titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
    47 +        titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
    48 +        lightweightthemes="true"
    48 +        lightweightthemes="true"
    49 +        lightweightthemesfooter="browser-bottombox"
    49 +        lightweightthemesfooter="browser-bottombox"
    50 +        windowtype="navigator:browser"
    50 +        windowtype="navigator:browser"
   141 +    <panel id="editBookmarkPanel"
   141 +    <panel id="editBookmarkPanel"
   142 +           type="arrow"
   142 +           type="arrow"
   143 +           footertype="promobox"
   143 +           footertype="promobox"
   144 +           orient="vertical"
   144 +           orient="vertical"
   145 +           ignorekeys="true"
   145 +           ignorekeys="true"
   146 +           consumeoutsideclicks="true"
       
   147 +           hidden="true"
   146 +           hidden="true"
   148 +           onpopupshown="StarUI.panelShown(event);"
   147 +           onpopupshown="StarUI.panelShown(event);"
   149 +           aria-labelledby="editBookmarkPanelTitle">
   148 +           aria-labelledby="editBookmarkPanelTitle">
   150 +      <row id="editBookmarkPanelHeader" align="center" hidden="true">
   149 +      <row id="editBookmarkPanelHeader" align="center" hidden="true">
   151 +        <vbox align="center">
   150 +        <vbox align="center">
   190 +
   189 +
   191 +    <!-- UI tour experience -->
   190 +    <!-- UI tour experience -->
   192 +    <panel id="UITourTooltip"
   191 +    <panel id="UITourTooltip"
   193 +           type="arrow"
   192 +           type="arrow"
   194 +           hidden="true"
   193 +           hidden="true"
   195 +           consumeoutsideclicks="false"
       
   196 +           noautofocus="true"
   194 +           noautofocus="true"
   197 +           align="start"
   195 +           align="start"
   198 +           orient="vertical"
   196 +           orient="vertical"
   199 +           role="alert">
   197 +           role="alert">
   200 +      <label id="UITourTooltipTitle" flex="1"/>
   198 +      <label id="UITourTooltipTitle" flex="1"/>
   205 +    </html:div>
   203 +    </html:div>
   206 +
   204 +
   207 +    <panel id="socialActivatedNotification"
   205 +    <panel id="socialActivatedNotification"
   208 +           type="arrow"
   206 +           type="arrow"
   209 +           hidden="true"
   207 +           hidden="true"
   210 +           consumeoutsideclicks="true"
       
   211 +           align="start"
   208 +           align="start"
   212 +           orient="horizontal"
   209 +           orient="horizontal"
   213 +           role="alert">
   210 +           role="alert">
   214 +      <image id="social-activation-icon" class="popup-notification-icon"/>
   211 +      <image id="social-activation-icon" class="popup-notification-icon"/>
   215 +      <vbox flex="1">
   212 +      <vbox flex="1">
   236 +           class="social-panel"
   233 +           class="social-panel"
   237 +           type="arrow"
   234 +           type="arrow"
   238 +           orient="horizontal"
   235 +           orient="horizontal"
   239 +           onpopupshowing="SocialShare.onShowing()"
   236 +           onpopupshowing="SocialShare.onShowing()"
   240 +           onpopuphidden="SocialShare.onHidden()"
   237 +           onpopuphidden="SocialShare.onHidden()"
   241 +           consumeoutsideclicks="true"
       
   242 +           hidden="true">
   238 +           hidden="true">
   243 +      <vbox class="social-share-toolbar">
   239 +      <vbox class="social-share-toolbar">
   244 +        <vbox id="social-share-provider-buttons" flex="1"/>
   240 +        <vbox id="social-share-provider-buttons" flex="1"/>
   245 +      </vbox>
   241 +      </vbox>
   246 +    </panel>
   242 +    </panel>
   257 +           side="right"
   253 +           side="right"
   258 +           type="arrow"
   254 +           type="arrow"
   259 +           hidden="true"
   255 +           hidden="true"
   260 +           flip="slide"
   256 +           flip="slide"
   261 +           rolluponmousewheel="true"
   257 +           rolluponmousewheel="true"
   262 +           consumeoutsideclicks="false"
       
   263 +           noautofocus="true"
   258 +           noautofocus="true"
   264 +           position="topcenter topright"/>
   259 +           position="topcenter topright"/>
   265 +
   260 +
   266 +    <menupopup id="toolbar-context-menu"
   261 +    <menupopup id="toolbar-context-menu"
   267 +               onpopupshowing="onViewToolbarsPopupShowing(event);">
   262 +               onpopupshowing="onViewToolbarsPopupShowing(event);">
   315 +    <!-- Popup for site identity information -->
   310 +    <!-- Popup for site identity information -->
   316 +    <panel id="identity-popup"
   311 +    <panel id="identity-popup"
   317 +           type="arrow"
   312 +           type="arrow"
   318 +           hidden="true"
   313 +           hidden="true"
   319 +           noautofocus="true"
   314 +           noautofocus="true"
   320 +           consumeoutsideclicks="true"
       
   321 +           onpopupshown="if (event.target == this)
   315 +           onpopupshown="if (event.target == this)
   322 +                           gIdentityHandler.onPopupShown(event);"
   316 +                           gIdentityHandler.onPopupShown(event);"
   323 +           orient="vertical"
   317 +           orient="vertical"
   324 +           level="top">
   318 +           level="top">
   325 +      <hbox id="identity-popup-container" align="top">
   319 +      <hbox id="identity-popup-container" align="top">
  1104 +  </hbox>
  1098 +  </hbox>
  1105 +
  1099 +
  1106 +  <vbox id="browser-bottombox" layer="true">
  1100 +  <vbox id="browser-bottombox" layer="true">
  1107 +    <notificationbox id="global-notificationbox"/>
  1101 +    <notificationbox id="global-notificationbox"/>
  1108 +    <toolbar id="developer-toolbar"
  1102 +    <toolbar id="developer-toolbar"
  1109 +             class="devtools-toolbar"
       
  1110 +             hidden="true">
  1103 +             hidden="true">
  1111 +#ifdef XP_MACOSX
  1104 +#ifdef XP_MACOSX
  1112 +          <toolbarbutton id="developer-toolbar-closebutton"
  1105 +          <toolbarbutton id="developer-toolbar-closebutton"
  1113 +                         class="devtools-closebutton"
  1106 +                         class="devtools-closebutton"
  1114 +                         oncommand="DeveloperToolbar.hide();"
  1107 +                         oncommand="DeveloperToolbar.hide();"
  1322  #endif
  1315  #endif
  1323  };
  1316  };
  1324 diff --git a/browser/components/shell/src/Makefile.in b/browser/components/shell/src/Makefile.in
  1317 diff --git a/browser/components/shell/src/Makefile.in b/browser/components/shell/src/Makefile.in
  1325 --- a/browser/components/shell/src/Makefile.in
  1318 --- a/browser/components/shell/src/Makefile.in
  1326 +++ b/browser/components/shell/src/Makefile.in
  1319 +++ b/browser/components/shell/src/Makefile.in
  1327 @@ -8,10 +8,12 @@ USE_STATIC_LIBS = 1
  1320 @@ -2,10 +2,12 @@
       
  1321  # This Source Code Form is subject to the terms of the Mozilla Public
       
  1322  # License, v. 2.0. If a copy of the MPL was not distributed with this
       
  1323  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  1328  
  1324  
  1329  include $(topsrcdir)/config/rules.mk
  1325  include $(topsrcdir)/config/rules.mk
  1330  
       
  1331  DEFINES += -DMOZ_APP_NAME=\"$(MOZ_APP_NAME)\" \
       
  1332    -DMOZ_APP_VERSION=\"$(MOZ_APP_VERSION)\"
       
  1333  
  1326  
  1334  CXXFLAGS += $(TK_CFLAGS)
  1327  CXXFLAGS += $(TK_CFLAGS)
  1335  
  1328  
  1336 +LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
  1329 +LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
  1337 +
  1330 +
  1338  clobber::
  1331  clobber::
  1339  	rm -f $(DIST)/lib/$(LIBRARY_NAME).lib
  1332  	rm -f $(DIST)/lib/$(LIBRARY_NAME).lib
  1340 diff --git a/browser/components/shell/src/moz.build b/browser/components/shell/src/moz.build
  1333 diff --git a/browser/components/shell/src/moz.build b/browser/components/shell/src/moz.build
  1341 --- a/browser/components/shell/src/moz.build
  1334 --- a/browser/components/shell/src/moz.build
  1342 +++ b/browser/components/shell/src/moz.build
  1335 +++ b/browser/components/shell/src/moz.build
  1343 @@ -12,16 +12,18 @@ if CONFIG['OS_ARCH'] == 'WINNT':
  1336 @@ -10,16 +10,18 @@ if CONFIG['OS_ARCH'] == 'WINNT':
  1344      ]
  1337      ]
  1345  elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
  1338  elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
  1346      SOURCES += [
  1339      SOURCES += [
  1347          'nsMacShellService.cpp',
  1340          'nsMacShellService.cpp',
  1348      ]
  1341      ]
  1349  elif CONFIG['MOZ_WIDGET_GTK']:
  1342  elif CONFIG['MOZ_WIDGET_GTK']:
  1350      SOURCES += [
  1343      SOURCES += [
  1351          'nsGNOMEShellService.cpp',
  1344          'nsGNOMEShellService.cpp',
  1352 +        'nsKDEShellService.cpp',
  1345 +	'nsKDEShellService.cpp',
  1353 +        'nsUnixShellService.cpp'
  1346 +	'nsUnixShellService.cpp',
  1354      ]
  1347      ]
  1355  
  1348  
  1356  if SOURCES:
  1349  if SOURCES:
  1357      LIBRARY_NAME = 'shellservice_s'
  1350      FINAL_LIBRARY = 'browsercomps'
  1358  
  1351  
  1359  EXTRA_COMPONENTS += [
  1352  EXTRA_COMPONENTS += [
  1360      'nsSetDefaultBrowser.js',
  1353      'nsSetDefaultBrowser.js',
  1361      'nsSetDefaultBrowser.manifest',
  1354      'nsSetDefaultBrowser.manifest',
  1362 diff --git a/browser/components/shell/src/nsKDEShellService.cpp b/browser/components/shell/src/nsKDEShellService.cpp
  1355 diff --git a/browser/components/shell/src/nsKDEShellService.cpp b/browser/components/shell/src/nsKDEShellService.cpp
  1770 +
  1763 +
  1771 +#endif // nsunixshellservice_h____
  1764 +#endif // nsunixshellservice_h____
  1772 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
  1765 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
  1773 --- a/browser/installer/package-manifest.in
  1766 --- a/browser/installer/package-manifest.in
  1774 +++ b/browser/installer/package-manifest.in
  1767 +++ b/browser/installer/package-manifest.in
  1775 @@ -613,19 +613,21 @@
  1768 @@ -640,19 +640,21 @@
  1776  @BINPATH@/defaults/autoconfig/prefcalls.js
  1769  @BINPATH@/defaults/autoconfig/prefcalls.js
  1777  @BINPATH@/browser/defaults/profile/prefs.js
  1770  @BINPATH@/browser/defaults/profile/prefs.js
  1778  
  1771  
  1779  #ifndef LIBXUL_SDK
  1772  #ifndef LIBXUL_SDK
  1780  ; Warning: changing the path to channel-prefs.js can cause bugs (Bug 756325)
  1773  ; Warning: changing the path to channel-prefs.js can cause bugs (Bug 756325)