summaryrefslogtreecommitdiff
path: root/gtk/gtkexpander.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2013-07-09 16:47:59 -0400
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2013-07-11 17:08:15 -0400
commitdae6afc847110b533e95b4df318d7e2163a53809 (patch)
tree06fd846e1e6c3a86085da440b3db9a01277b037a /gtk/gtkexpander.c
parent57fc8763e930911f97b6e9fc9edebafb887db2b3 (diff)
downloadgtk+-dae6afc847110b533e95b4df318d7e2163a53809.tar.gz
Deprecate and ignore timeout-expand setting
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;