summaryrefslogtreecommitdiff
path: root/gtk/gtksettings.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-03-22 20:17:23 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-03-22 20:17:23 +0000
commit411d798e9377775d8bd068505a1041fc55deb80b (patch)
treeab0ac6dbd081ddbb7c80a03a67f6d125f905910c /gtk/gtksettings.c
parent8a1478a58fdc24f34ef1b6c7900da64d265f0091 (diff)
downloadgtk+-411d798e9377775d8bd068505a1041fc55deb80b.tar.gz
Improved DND support for GtkNotebook (#332991, Carlos Garnacho)
2006-03-22 Matthias Clasen <mclasen@redhat.com> Improved DND support for GtkNotebook (#332991, Carlos Garnacho) * gtk/gtk.symbols: * gtk/gtkdnd.h: * gtk/gtkdnd.c: Add a track_motion flag on GtkDragDest with getter and setter, for cases where the drag destination is interested in drag motion events independent of targets. * gtk/gtksettings.c (gtk_settings_class_init): Add a setting for the timeout used when expanding during DND. * gtk/gtknotebook.c: Use the track_motion flag to switch notebook tabs when hovering over tabs during DND.
Diffstat (limited to 'gtk/gtksettings.c')
-rw-r--r--gtk/gtksettings.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index ea2f375ec0..1dd700cbc8 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -34,6 +34,7 @@
#define DEFAULT_TIMEOUT_INITIAL 200
#define DEFAULT_TIMEOUT_REPEAT 20
+#define DEFAULT_TIMEOUT_EXPAND 500
typedef struct _GtkSettingsValuePrivate GtkSettingsValuePrivate;
@@ -87,6 +88,7 @@ enum {
PROP_SHOW_UNICODE_MENU,
PROP_TIMEOUT_INITIAL,
PROP_TIMEOUT_REPEAT,
+ PROP_TIMEOUT_EXPAND,
PROP_COLOR_SCHEME,
PROP_ENABLE_ANIMATIONS,
PROP_TOUCHSCREEN_MODE,
@@ -452,6 +454,16 @@ gtk_settings_class_init (GtkSettingsClass *class)
g_assert (result == PROP_TIMEOUT_REPEAT);
+ result = settings_install_property_parser (class,
+ g_param_spec_int ("gtk-timeout-expand",
+ P_("Expand timeout"),
+ P_("Expand value for timeouts, when a widget is expanding a new region"),
+ 0, G_MAXINT, DEFAULT_TIMEOUT_EXPAND,
+ GTK_PARAM_READWRITE),
+ NULL);
+
+ g_assert (result == PROP_TIMEOUT_EXPAND);
+
/**
* GtkSettings:gtk-color-scheme:
*