1 # HG changeset patch |
1 # HG changeset patch |
2 # User msirringhaus@suse.de |
2 # User msirringhaus@suse.de |
3 # Date 1559300151 -7200 |
3 # Date 1559300151 -7200 |
4 # Fri May 31 12:55:51 2019 +0200 |
4 # Fri May 31 12:55:51 2019 +0200 |
5 # Node ID 54d41b0033b8d649d842a1f862c6fed8b9874dec |
5 # Node ID 54d41b0033b8d649d842a1f862c6fed8b9874dec |
6 # Parent 856ef9c699423b1cd35e4df8745e78c409c8dbae |
6 # Parent 23d64c5753fda6f201477fe1f2f6cf1fb1657ccc |
7 How to apply this patch: |
7 How to apply this patch: |
8 1. Import and apply it |
8 1. Import and apply it |
9 2. cp browser/base/content/browser.xul browser/base/content/browser-kde.xul |
9 2. cp browser/base/content/browser.xul browser/base/content/browser-kde.xul |
10 3. Find editBookmarkPanelDoneButton |
10 3. Find editBookmarkPanelDoneButton |
11 4. Replace #ifndef with #ifdef in the line above (this hanges the button order from Gnome-style to KDE-style) |
11 4. Replace #ifndef with #ifdef in the line above (this hanges the button order from Gnome-style to KDE-style) |
12 5. hg qrefresh |
12 5. hg qrefresh |
13 |
13 |
14 diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js |
14 diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js |
15 --- a/browser/components/preferences/main.js |
15 --- a/browser/components/preferences/main.js |
16 +++ b/browser/components/preferences/main.js |
16 +++ b/browser/components/preferences/main.js |
17 @@ -338,16 +338,23 @@ var gMainPane = { |
17 @@ -353,16 +353,23 @@ var gMainPane = { |
18 }, backoffTimes[this._backoffIndex + 1 < backoffTimes.length ? this._backoffIndex++ : backoffTimes.length - 1]); |
18 }, backoffTimes[this._backoffIndex + 1 < backoffTimes.length ? this._backoffIndex++ : backoffTimes.length - 1]); |
19 }; |
19 }; |
20 |
20 |
21 window.setTimeout(() => { |
21 window.setTimeout(() => { |
22 window.requestIdleCallback(pollForDefaultBrowser); |
22 window.requestIdleCallback(pollForDefaultBrowser); |
36 let performanceSettingsLink = document.getElementById( |
36 let performanceSettingsLink = document.getElementById( |
37 "performanceSettingsLearnMore" |
37 "performanceSettingsLearnMore" |
38 ); |
38 ); |
39 let performanceSettingsUrl = |
39 let performanceSettingsUrl = |
40 Services.urlFormatter.formatURLPref("app.support.baseURL") + |
40 Services.urlFormatter.formatURLPref("app.support.baseURL") + |
41 @@ -1313,16 +1320,27 @@ var gMainPane = { |
41 @@ -1365,16 +1372,27 @@ var gMainPane = { |
42 this._backoffIndex = 0; |
42 this._backoffIndex = 0; |
43 |
43 |
44 let shellSvc = getShellService(); |
44 let shellSvc = getShellService(); |
45 if (!shellSvc) { |
45 if (!shellSvc) { |
46 return; |
46 return; |
67 let setDefaultPane = document.getElementById("setDefaultPane"); |
67 let setDefaultPane = document.getElementById("setDefaultPane"); |
68 setDefaultPane.classList.toggle("is-default", isDefault); |
68 setDefaultPane.classList.toggle("is-default", isDefault); |
69 diff --git a/browser/components/shell/moz.build b/browser/components/shell/moz.build |
69 diff --git a/browser/components/shell/moz.build b/browser/components/shell/moz.build |
70 --- a/browser/components/shell/moz.build |
70 --- a/browser/components/shell/moz.build |
71 +++ b/browser/components/shell/moz.build |
71 +++ b/browser/components/shell/moz.build |
72 @@ -32,16 +32,18 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "coco |
72 @@ -31,16 +31,18 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "coco |
73 ] |
73 ] |
74 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": |
74 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": |
75 XPIDL_SOURCES += [ |
75 XPIDL_SOURCES += [ |
76 "nsIGNOMEShellService.idl", |
76 "nsIGNOMEShellService.idl", |
77 ] |
77 ] |
90 |
90 |
91 diff --git a/browser/components/shell/nsKDEShellService.cpp b/browser/components/shell/nsKDEShellService.cpp |
91 diff --git a/browser/components/shell/nsKDEShellService.cpp b/browser/components/shell/nsKDEShellService.cpp |
92 new file mode 100644 |
92 new file mode 100644 |
93 --- /dev/null |
93 --- /dev/null |
94 +++ b/browser/components/shell/nsKDEShellService.cpp |
94 +++ b/browser/components/shell/nsKDEShellService.cpp |
95 @@ -0,0 +1,103 @@ |
95 @@ -0,0 +1,109 @@ |
96 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
96 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
97 +/* This Source Code Form is subject to the terms of the Mozilla Public |
97 +/* This Source Code Form is subject to the terms of the Mozilla Public |
98 + * License, v. 2.0. If a copy of the MPL was not distributed with this |
98 + * License, v. 2.0. If a copy of the MPL was not distributed with this |
99 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
99 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
100 + |
100 + |
194 +nsKDEShellService::SetDesktopBackgroundColor(PRUint32 aColor) |
194 +nsKDEShellService::SetDesktopBackgroundColor(PRUint32 aColor) |
195 +{ |
195 +{ |
196 + return NS_ERROR_NOT_IMPLEMENTED; |
196 + return NS_ERROR_NOT_IMPLEMENTED; |
197 +} |
197 +} |
198 + |
198 + |
|
199 +NS_IMETHODIMP |
|
200 +nsKDEShellService::IsDefaultForScheme(nsTSubstring<char> const& aScheme, bool* aIsDefaultBrowser) |
|
201 +{ |
|
202 + return NS_ERROR_NOT_IMPLEMENTED; |
|
203 +} |
|
204 + |
199 diff --git a/browser/components/shell/nsKDEShellService.h b/browser/components/shell/nsKDEShellService.h |
205 diff --git a/browser/components/shell/nsKDEShellService.h b/browser/components/shell/nsKDEShellService.h |
200 new file mode 100644 |
206 new file mode 100644 |
201 --- /dev/null |
207 --- /dev/null |
202 +++ b/browser/components/shell/nsKDEShellService.h |
208 +++ b/browser/components/shell/nsKDEShellService.h |
203 @@ -0,0 +1,32 @@ |
209 @@ -0,0 +1,32 @@ |