2009-05-25 Alejandro G. Castro <alex@igalia.com>
* hildon/hildon-pannable-area.c,
+ (hildon_pannable_area_set_property): Added code to sync the gtk
+ dnd threshold with the panning threshold.
+
+2009-05-25 Alejandro G. Castro <alex@igalia.com>
+
+ * hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Changed some of the default
values, now it should be less responsive and more accurate.
priv->sps = g_value_get_uint (value);
break;
case PROP_PANNING_THRESHOLD:
- priv->panning_threshold = g_value_get_uint (value);
+ {
+ GtkSettings *settings = gtk_settings_get_default ();
+ GtkSettingsValue svalue = { NULL, { 0, }, };
+
+ priv->panning_threshold = g_value_get_uint (value);
+
+ /* insure gtk dnd is the same we are using, not allowed
+ different thresholds in the same application */
+ svalue.origin = "panning_threshold";
+ g_value_init (&svalue.value, G_TYPE_LONG);
+ g_value_set_long (&svalue.value, priv->panning_threshold);
+ gtk_settings_set_property_value (settings, "gtk-dnd-drag-threshold", &svalue);
+ g_value_unset (&svalue.value);
+ }
break;
case PROP_SCROLLBAR_FADE_DELAY:
/* convert to miliseconds */