mozilla-kde.patch
changeset 356 30a00f382aed
parent 340 aabcc7895695
child 367 3fabd9f66322
--- a/mozilla-kde.patch	Sat Nov 12 16:22:36 2011 +0100
+++ b/mozilla-kde.patch	Fri Nov 18 07:36:46 2011 +0100
@@ -709,7 +709,7 @@
 new file mode 100644
 --- /dev/null
 +++ b/toolkit/content/widgets/preferences-kde.xml
-@@ -0,0 +1,1371 @@
+@@ -0,0 +1,1373 @@
 +<?xml version="1.0"?>
 +
 +<!DOCTYPE bindings [
@@ -1975,6 +1975,8 @@
 +      <handler event="command">
 +        // This "command" event handler tracks changes made to preferences by 
 +        // the user in this window. 
++	if (event.sourceEvent)
++	  event = event.sourceEvent;
 +        this.userChangedValue(event.target);
 +      </handler>
 +      <handler event="select">
@@ -2192,12 +2194,12 @@
 +EXPORTS += nsKDEUtils.h
  else
  ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
+ MOCSRCS += moc_nsNativeAppSupportQt.cpp
+   $(NULL)
+ CPPSRCS += $(MOCSRCS)
  CPPSRCS += nsNativeAppSupportQt.cpp
  CPPSRCS += nsQAppInstance.cpp
  EXPORTS += nsQAppInstance.h
- else
- CPPSRCS += nsNativeAppSupportDefault.cpp
- endif
 diff --git a/toolkit/xre/nsKDEUtils.cpp b/toolkit/xre/nsKDEUtils.cpp
 new file mode 100644
 --- /dev/null
@@ -3615,7 +3617,7 @@
                                           info.dwMinorVersion);
    }
 +  desktop = NS_LITERAL_STRING("win");
- #elif defined(XP_MACOSX)
+ #elif defined(MOZ_WIDGET_COCOA)
    SInt32 majorVersion, minorVersion;
    if ((Gestalt(gestaltSystemVersionMajor, &majorVersion) == noErr) &&
        (Gestalt(gestaltSystemVersionMinor, &minorVersion) == noErr)) {