aboutsummaryrefslogtreecommitdiffstats
path: root/packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.bz2
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.zip
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff')
-rw-r--r--packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff50
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff b/packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff
index e69de29bb2..13f8c330f5 100644
--- a/packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff
+++ b/packages/gtk+/gtk+-2.6.4-1.osso7/gtkspinbutton.c.diff
@@ -0,0 +1,50 @@
+--- gtk+-2.6.4/gtk/gtkspinbutton.c 2004-11-14 03:25:35.000000000 +0200
++++ gtk+-2.6.4/gtk/gtkspinbutton.c 2005-04-06 16:19:37.945769728 +0300
+@@ -1041,15 +1041,21 @@
+ GtkArrowType click_child,
+ gdouble step)
+ {
++ GtkSettings *settings;
++ guint timeout;
++
+ g_return_if_fail (click_child == GTK_ARROW_UP || click_child == GTK_ARROW_DOWN);
+-
++
++ settings = gtk_settings_get_default ();
++ g_object_get (settings, "gtk-initial-timeout", &timeout, NULL);
++
+ spin->click_child = click_child;
+
+ if (!spin->timer)
+ {
+ spin->timer_step = step;
+ spin->need_timer = TRUE;
+- spin->timer = g_timeout_add (SPIN_BUTTON_INITIAL_TIMER_DELAY,
++ spin->timer = g_timeout_add (/*SPIN_BUTTON_INITIAL_TIMER_DELAY*/timeout,
+ (GSourceFunc) gtk_spin_button_timer,
+ (gpointer) spin);
+ }
+@@ -1188,9 +1194,14 @@
+ gtk_spin_button_timer (GtkSpinButton *spin_button)
+ {
+ gboolean retval = FALSE;
++ GtkSettings *settings;
++ guint timeout;
+
+ GDK_THREADS_ENTER ();
+
++ settings = gtk_settings_get_default ();
++ g_object_get (settings, "gtk-update-timeout", &timeout, NULL);
++
+ if (spin_button->timer)
+ {
+ if (spin_button->click_child == GTK_ARROW_UP)
+@@ -1201,7 +1212,7 @@
+ if (spin_button->need_timer)
+ {
+ spin_button->need_timer = FALSE;
+- spin_button->timer = g_timeout_add (SPIN_BUTTON_TIMER_DELAY,
++ spin_button->timer = g_timeout_add (/*SPIN_BUTTON_TIMER_DELAY*/timeout,
+ (GSourceFunc) gtk_spin_button_timer,
+ (gpointer) spin_button);
+ }