diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-12-22 19:10:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-12-22 19:10:43 +0000 |
commit | 721c3bc10182cacf1a98baddde3c94e59797ddb7 (patch) | |
tree | 78b2e3ae3c00133a58f09653aff664e4ab0305e9 /tests/autotestfilechooser.c | |
parent | 7854bd1b6e6102aff426bf6a48606c4a9b12b7c2 (diff) | |
download | gtk+-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 'tests/autotestfilechooser.c')
-rw-r--r-- | tests/autotestfilechooser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/autotestfilechooser.c b/tests/autotestfilechooser.c index e7aa8de685..2706d9d522 100644 --- a/tests/autotestfilechooser.c +++ b/tests/autotestfilechooser.c @@ -122,7 +122,7 @@ test_set_filename (GtkFileChooserAction action, (* set_filename_fn) (GTK_FILE_CHOOSER (chooser), data); - g_timeout_add (2000, set_filename_timeout_cb, &closure); + gdk_threads_add_timeout (2000, set_filename_timeout_cb, &closure); gtk_dialog_run (GTK_DIALOG (chooser)); retval = (* compare_filename_fn) (GTK_FILE_CHOOSER (chooser), data); @@ -332,7 +332,7 @@ test_confirm_overwrite_for_path (const char *path) gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (closure.chooser), path); - g_timeout_add (2000, confirm_overwrite_timeout_cb, &closure); + gdk_threads_add_timeout (2000, confirm_overwrite_timeout_cb, &closure); gtk_dialog_run (GTK_DIALOG (closure.chooser)); filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (closure.chooser)); @@ -899,7 +899,7 @@ sleep_timeout_cb (gpointer data) static void sleep_in_main_loop (int milliseconds) { - g_timeout_add (milliseconds, sleep_timeout_cb, NULL); + gdk_threads_add_timeout (milliseconds, sleep_timeout_cb, NULL); gtk_main (); } |