diff options
author | Javier Jardón <jjardon@gnome.org> | 2009-10-22 05:17:29 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-05-03 01:51:18 +0200 |
commit | 20342702f49693229dfde4588823744ab5e68e95 (patch) | |
tree | ad59902add81bb48add4c3aa3816d6daae39872e /tests | |
parent | f7813125bbe873f4074c12ff38d8cf00639161dc (diff) | |
download | gtk+-20342702f49693229dfde4588823744ab5e68e95.tar.gz |
Remove gtkmain stuff from docs and tutorial.
Also, substitue the deprecated functions with the new ones in
documentation and in tests code
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 12 | ||||
-rw-r--r-- | tests/testselection.c | 2 | ||||
-rw-r--r-- | tests/testtext.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 59e3eb174b..5b8b724765 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -9847,7 +9847,7 @@ static void destroy_progress (GtkWidget *widget, ProgressData **pdata) { - gtk_timeout_remove ((*pdata)->timer); + g_source_remove ((*pdata)->timer); (*pdata)->timer = 0; (*pdata)->window = NULL; g_free (*pdata); @@ -10061,7 +10061,7 @@ create_progress_bar (GtkWidget *widget) gtk_progress_set_format_string (GTK_PROGRESS (pdata->pbar), "%v from [%l,%u] (=%p%%)"); gtk_container_add (GTK_CONTAINER (align), pdata->pbar); - pdata->timer = gtk_timeout_add (100, progress_timeout, pdata->pbar); + pdata->timer = g_timeout_add (100, (GSourceFunc)progress_timeout, pdata->pbar); align = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_box_pack_start (GTK_BOX (vbox2), align, FALSE, FALSE, 5); @@ -11067,7 +11067,7 @@ start_timeout_test (GtkWidget *widget, { if (!timer) { - timer = gtk_timeout_add (100, (GtkFunction) timeout_test, label); + timer = g_timeout_add (100, (GSourceFunc)timeout_test, label); } } @@ -11077,7 +11077,7 @@ stop_timeout_test (GtkWidget *widget, { if (timer) { - gtk_timeout_remove (timer); + g_source_remove (timer); timer = 0; } } @@ -11177,7 +11177,7 @@ start_idle_test (GtkWidget *widget, { if (!idle_id) { - idle_id = gtk_idle_add ((GtkFunction) idle_test, label); + idle_id = g_idle_add ((GSourceFunc) idle_test, label); } } @@ -11187,7 +11187,7 @@ stop_idle_test (GtkWidget *widget, { if (idle_id) { - gtk_idle_remove (idle_id); + g_source_remove (idle_id); idle_id = 0; } } diff --git a/tests/testselection.c b/tests/testselection.c index cd18173697..8230ace2a1 100644 --- a/tests/testselection.c +++ b/tests/testselection.c @@ -378,7 +378,7 @@ paste (GtkWidget *widget, GtkWidget *entry) void quit (void) { - gtk_exit (0); + exit (0); } int diff --git a/tests/testtext.c b/tests/testtext.c index e717c4ed49..ea2870f960 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -472,7 +472,7 @@ fill_example_buffer (GtkTextBuffer *buffer) tag = gtk_text_buffer_create_tag (buffer, "fg_blue", NULL); #ifdef DO_BLINK - gtk_timeout_add (1000, blink_timeout, tag); + g_timeout_add (1000, (GSourceFunc)blink_timeout, tag); #endif setup_tag (tag); |