firefox-kde.patch
branchfirefox46
changeset 910 a3615665211f
parent 909 c6717354928b
child 911 32eafb4c7b34
equal deleted inserted replaced
909:c6717354928b 910:a3615665211f
     1 # HG changeset patch
     1 # HG changeset patch
     2 # Parent  f8b7b01caa34a2b2dbea6d47993ad7bbb7346a64
     2 # Parent  fd5629206dcf3f64d85ab177be6bc6076f0f1619
     3 
     3 
     4 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     4 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     5 new file mode 100644
     5 new file mode 100644
     6 --- /dev/null
     6 --- /dev/null
     7 +++ b/browser/base/content/browser-kde.xul
     7 +++ b/browser/base/content/browser-kde.xul
  1341      'nsSetDefaultBrowser.manifest',
  1341      'nsSetDefaultBrowser.manifest',
  1342 diff --git a/browser/components/shell/nsKDEShellService.cpp b/browser/components/shell/nsKDEShellService.cpp
  1342 diff --git a/browser/components/shell/nsKDEShellService.cpp b/browser/components/shell/nsKDEShellService.cpp
  1343 new file mode 100644
  1343 new file mode 100644
  1344 --- /dev/null
  1344 --- /dev/null
  1345 +++ b/browser/components/shell/nsKDEShellService.cpp
  1345 +++ b/browser/components/shell/nsKDEShellService.cpp
  1346 @@ -0,0 +1,196 @@
  1346 @@ -0,0 +1,203 @@
  1347 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  1347 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  1348 +/* This Source Code Form is subject to the terms of the Mozilla Public
  1348 +/* This Source Code Form is subject to the terms of the Mozilla Public
  1349 + * License, v. 2.0. If a copy of the MPL was not distributed with this
  1349 + * License, v. 2.0. If a copy of the MPL was not distributed with this
  1350 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  1350 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  1351 +
  1351 +
  1419 +
  1419 +
  1420 +    paramstr->SetData( aClaimAllTypes ? NS_LITERAL_CSTRING( "ALLTYPES" ) : NS_LITERAL_CSTRING( "NORMAL" ));
  1420 +    paramstr->SetData( aClaimAllTypes ? NS_LITERAL_CSTRING( "ALLTYPES" ) : NS_LITERAL_CSTRING( "NORMAL" ));
  1421 +    command->AppendElement( paramstr, false );
  1421 +    command->AppendElement( paramstr, false );
  1422 +
  1422 +
  1423 +    return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
  1423 +    return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
       
  1424 +}
       
  1425 +
       
  1426 +NS_IMETHODIMP
       
  1427 +nsKDEShellService::GetCanSetDesktopBackground(bool* aResult)
       
  1428 +{
       
  1429 +  *aResult = true;
       
  1430 +  return NS_OK;
  1424 +}
  1431 +}
  1425 +
  1432 +
  1426 +NS_IMETHODIMP
  1433 +NS_IMETHODIMP
  1427 +nsKDEShellService::SetDesktopBackground(nsIDOMElement* aElement,
  1434 +nsKDEShellService::SetDesktopBackground(nsIDOMElement* aElement,
  1428 +                                          PRInt32 aPosition)
  1435 +                                          PRInt32 aPosition)