summaryrefslogtreecommitdiff
path: root/gtk/gtkexpander.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkexpander.c')
-rw-r--r--gtk/gtkexpander.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index dac07465b2..60c82da1f7 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -117,6 +117,7 @@
#define DEFAULT_EXPANDER_SIZE 10
#define DEFAULT_EXPANDER_SPACING 2
+#define TIMEOUT_EXPAND 500
enum
{
@@ -1144,13 +1145,7 @@ gtk_expander_drag_motion (GtkWidget *widget,
if (!priv->expanded && !priv->expand_timer)
{
- GtkSettings *settings;
- guint timeout;
-
- settings = gtk_widget_get_settings (widget);
- g_object_get (settings, "gtk-timeout-expand", &timeout, NULL);
-
- priv->expand_timer = gdk_threads_add_timeout (timeout, (GSourceFunc) expand_timeout, expander);
+ priv->expand_timer = gdk_threads_add_timeout (TIMEOUT_EXPAND, (GSourceFunc) expand_timeout, expander);
}
return TRUE;