diff options
author | Manish Singh <yosh@src.gnome.org> | 1998-12-19 11:47:58 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 1998-12-19 11:47:58 +0000 |
commit | 5225ae610541a6213efb4e59e3aaa2382f2013f3 (patch) | |
tree | 843fcec569a73e35af114eab1bc8b1ca4cb98787 /gtk/gtkmain.c | |
parent | 8fc5066a69f37a095354eed184d5582a0a5d6744 (diff) | |
download | gtk+-5225ae610541a6213efb4e59e3aaa2382f2013f3.tar.gz |
always run a g_main_iteration, even if there are no active main loops.
* gtk/gtkmain.c: always run a g_main_iteration, even if
there are no active main loops. This fixes the gimp splash
screen.
-Yosh
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 9082eac793..f73ddc504e 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -526,12 +526,10 @@ gtk_events_pending (void) gint gtk_main_iteration (void) { - if (main_loops) - { - g_main_iteration (TRUE); + g_main_iteration (TRUE); - return !g_main_is_running (main_loops->data); - } + if (main_loops) + return !g_main_is_running (main_loops->data); else return TRUE; } @@ -539,12 +537,10 @@ gtk_main_iteration (void) gint gtk_main_iteration_do (gboolean blocking) { - if (main_loops) - { - g_main_iteration (blocking); + g_main_iteration (blocking); - return !g_main_is_running (main_loops->data); - } + if (main_loops) + return !g_main_is_running (main_loops->data); else return TRUE; } |