diff -r be770d3cbc02 -r ab25aac2aa83 mozilla-kde.patch --- a/mozilla-kde.patch Thu Oct 24 20:13:14 2013 +0200 +++ b/mozilla-kde.patch Tue Nov 19 18:46:37 2013 +0100 @@ -7,7 +7,7 @@ diff --git a/modules/libpref/src/Makefile.in b/modules/libpref/src/Makefile.in --- a/modules/libpref/src/Makefile.in +++ b/modules/libpref/src/Makefile.in -@@ -49,14 +49,15 @@ endif +@@ -35,14 +35,15 @@ endif # Optimizer bug with GCC 3.2.2 on OS/2 ifeq ($(OS_ARCH), OS2) nsPrefService.$(OBJ_SUFFIX): nsPrefService.cpp @@ -26,8 +26,7 @@ diff --git a/modules/libpref/src/Preferences.cpp b/modules/libpref/src/Preferences.cpp --- a/modules/libpref/src/Preferences.cpp +++ b/modules/libpref/src/Preferences.cpp -@@ -24,16 +24,17 @@ - #include "nsIStringEnumerator.h" +@@ -26,16 +26,17 @@ #include "nsIZipReader.h" #include "nsPrefBranch.h" #include "nsXPIDLString.h" @@ -35,6 +34,7 @@ #include "nsCOMArray.h" #include "nsXPCOMCID.h" #include "nsAutoPtr.h" + #include "nsPrintfCString.h" +#include "nsKDEUtils.h" #include "nsQuickSort.h" @@ -44,7 +44,7 @@ #include "prefread.h" #include "prefapi_private_data.h" -@@ -973,16 +974,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char +@@ -1098,16 +1099,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char static nsresult pref_LoadPrefsInDirList(const char *listId) { @@ -79,7 +79,7 @@ return NS_OK; bool hasMore; -@@ -998,17 +1017,17 @@ static nsresult pref_LoadPrefsInDirList( +@@ -1123,17 +1142,17 @@ static nsresult pref_LoadPrefsInDirList( nsAutoCString leaf; path->GetNativeLeafName(leaf); @@ -98,7 +98,7 @@ { nsZipItemPtr manifest(jarReader, name, true); NS_ENSURE_TRUE(manifest.Buffer(), NS_ERROR_NOT_AVAILABLE); -@@ -1102,28 +1121,40 @@ static nsresult pref_InitInitialObjects( +@@ -1227,28 +1246,40 @@ static nsresult pref_InitInitialObjects( /* these pref file names should not be used: we process them after all other application pref files for backwards compatibility */ static const char* specialFiles[] = { #if defined(XP_MACOSX) @@ -184,16 +184,11 @@ diff --git a/toolkit/components/downloads/Makefile.in b/toolkit/components/downloads/Makefile.in --- a/toolkit/components/downloads/Makefile.in +++ b/toolkit/components/downloads/Makefile.in -@@ -11,13 +11,15 @@ VPATH = @srcdir@ - include $(DEPTH)/config/autoconf.mk - - LIBRARY_NAME = download_s - LIBXUL_LIBRARY = 1 - FAIL_ON_WARNINGS = 1 +@@ -4,9 +4,10 @@ + # file, You can obtain one at http://mozilla.org/MPL/2.0/. include $(topsrcdir)/config/rules.mk -+ CXXFLAGS += $(TK_CFLAGS) -DGOOGLE_PROTOBUF_NO_RTTI LOCAL_INCLUDES += \ @@ -203,10 +198,10 @@ diff --git a/toolkit/components/downloads/nsDownloadManager.cpp b/toolkit/components/downloads/nsDownloadManager.cpp --- a/toolkit/components/downloads/nsDownloadManager.cpp +++ b/toolkit/components/downloads/nsDownloadManager.cpp -@@ -38,16 +38,20 @@ - +@@ -41,16 +41,20 @@ #ifdef XP_WIN #include + #include "nsWindowsHelpers.h" #ifdef DOWNLOAD_SCANNER #include "nsDownloadScanner.h" #endif @@ -224,7 +219,7 @@ #include "AndroidBridge.h" #endif -@@ -2609,16 +2613,25 @@ nsDownload::SetState(DownloadState aStat +@@ -2686,16 +2690,25 @@ nsDownload::SetState(DownloadState aStat nsCOMPtr pref(do_GetService(NS_PREFSERVICE_CONTRACTID)); // Master pref to control this function. @@ -250,7 +245,7 @@ int64_t goat = PR_Now() - mStartTime; showTaskbarAlert = goat > alertIntervalUSec; -@@ -2645,19 +2658,20 @@ nsDownload::SetState(DownloadState aStat +@@ -2722,19 +2735,20 @@ nsDownload::SetState(DownloadState aStat // retention policy, there's no reason to make the text clickable // because if it is, they'll click open the download manager and // the items they downloaded will have been removed. @@ -265,7 +260,7 @@ } + } - #if defined(XP_WIN) || defined(XP_MACOSX) || defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GTK2) + #if defined(XP_WIN) || defined(XP_MACOSX) || defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GTK) nsCOMPtr fileURL = do_QueryInterface(mTarget); nsCOMPtr file; nsAutoString path; @@ -275,7 +270,7 @@ diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn --- a/toolkit/content/jar.mn +++ b/toolkit/content/jar.mn -@@ -50,29 +50,33 @@ toolkit.jar: +@@ -53,29 +53,33 @@ toolkit.jar: content/global/viewZoomOverlay.js (viewZoomOverlay.js) *+ content/global/bindings/autocomplete.xml (widgets/autocomplete.xml) content/global/bindings/browser.xml (widgets/browser.xml) @@ -769,7 +764,7 @@ new file mode 100644 --- /dev/null +++ b/toolkit/content/widgets/preferences-kde.xml -@@ -0,0 +1,1339 @@ +@@ -0,0 +1,1332 @@ + + + + +#elif XP_UNIX -+ pack="end"> -+