X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7c80f9e052d3d50b3d7780b21e55d8c5586cdea..33328cd8828baafa97e8623e005b471486b61cc7:/src/gtk/settings.cpp diff --git a/src/gtk/settings.cpp b/src/gtk/settings.cpp index b0cb27143e..1aa49645b0 100644 --- a/src/gtk/settings.cpp +++ b/src/gtk/settings.cpp @@ -13,9 +13,12 @@ #include "wx/settings.h" -#include "wx/cmndata.h" +#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 @@ -530,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;