diff options
Diffstat (limited to 'components/services/install-view/main.c')
-rw-r--r-- | components/services/install-view/main.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/components/services/install-view/main.c b/components/services/install-view/main.c index d1af31b3d..2a166098f 100644 --- a/components/services/install-view/main.c +++ b/components/services/install-view/main.c @@ -34,12 +34,22 @@ static int object_count = 0; +static gboolean +quit_timer (void *unused) +{ + gtk_main_quit (); + return FALSE; +} + static void service_install_object_destroyed (GtkObject *obj) { object_count--; if (object_count <= 0) { - gtk_main_quit (); + /* timing issues: let the install view handle its own shutdown before + * pulling the plug... + */ + gtk_timeout_add (5, quit_timer, NULL); } } |