summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-12-22 19:10:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-12-22 19:10:43 +0000
commit721c3bc10182cacf1a98baddde3c94e59797ddb7 (patch)
tree78b2e3ae3c00133a58f09653aff664e4ab0305e9 /examples
parent7854bd1b6e6102aff426bf6a48606c4a9b12b7c2 (diff)
downloadgtk+-721c3bc10182cacf1a98baddde3c94e59797ddb7.tar.gz
Replace a lot of idle and timeout calls by the new gdk_threads api.
2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
Diffstat (limited to 'examples')
-rw-r--r--examples/gtkdial/gtkdial.c4
-rw-r--r--examples/progressbar/progressbar.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/gtkdial/gtkdial.c b/examples/gtkdial/gtkdial.c
index 5ea5962614..5749e92ad8 100644
--- a/examples/gtkdial/gtkdial.c
+++ b/examples/gtkdial/gtkdial.c
@@ -585,8 +585,8 @@ gtk_dial_update_mouse( GtkDial *dial, gint x, gint y )
if (dial->timer)
g_source_remove (dial->timer);
- dial->timer = g_timeout_add (SCROLL_DELAY_LENGTH,
- (GtkFunction) gtk_dial_timer,
+ dial->timer = gdk_threads_add_timeout (SCROLL_DELAY_LENGTH,
+ (GSourceFunc) gtk_dial_timer,
(gpointer) dial);
}
}
diff --git a/examples/progressbar/progressbar.c b/examples/progressbar/progressbar.c
index aefebab3b4..fb219d0b82 100644
--- a/examples/progressbar/progressbar.c
+++ b/examples/progressbar/progressbar.c
@@ -134,7 +134,7 @@ int main( int argc,
gtk_widget_show (pdata->pbar);
/* Add a timer callback to update the value of the progress bar */
- pdata->timer = g_timeout_add (100, progress_timeout, pdata);
+ pdata->timer = gdk_threads_add_timeout (100, progress_timeout, pdata);
separator = gtk_hseparator_new ();
gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 0);