]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/settings.cpp
cleanup for 10.5
[wxWidgets.git] / src / gtk / settings.cpp
index bc6ee6a3c8911f3075879a4b70d9fcb680067e90..1aa49645b0da6b433a1ddee375d754cba7ab61d5 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/cmndata.h"
+    #include "wx/toplevel.h"
 #endif
 
 #include "wx/fontutil.h"
-#include "wx/toplevel.h"
 
 // Using gtk_list_new, which is deprecated since GTK2
 // Using gtk_object_sink, which is deprecated since GTK+-2.9.0
@@ -533,7 +533,13 @@ int wxSystemSettingsNative::GetMetric( wxSystemMetric index, wxWindow* win )
                              "gtk-dnd-drag-threshold", &drag_threshold, NULL);
             }
 
-            return drag_threshold * 2;
+            // The correct thing here would be to double the value
+            // since that is what the API wants. But the values
+            // are much bigger under GNOME than under Windows and
+            // just seem to much in many cases to be useful.
+            // drag_threshold *= 2;   
+
+            return drag_threshold;
 
         // MBN: ditto for icons
         case wxSYS_ICON_X:     return 32;