diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gtkdial/gtkdial.c | 4 | ||||
-rw-r--r-- | examples/progressbar/progressbar.c | 2 |
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); |