Wait 1 sec before closing the accounts window in order to let hildon-desktop to prope...
authorSergio Villar Senín <svillar@igalia.com>
Mon, 30 Nov 2009 09:49:03 +0000 (10:49 +0100)
committerSergio Villar Senín <svillar@igalia.com>
Mon, 30 Nov 2009 09:49:03 +0000 (10:49 +0100)
Fixes NB#139348

src/hildon2/modest-accounts-window.c

index c7f65e5..628329b 100644 (file)
@@ -717,7 +717,11 @@ on_delete_event (GtkWidget *widget,
        gtk_widget_queue_resize (widget);
 
        gdk_window_process_updates (priv->account_view->window, TRUE);
+
+       /* Take screenshot. We have to wait a bit to ensure that
+          screenshot is properly taken */
        hildon_gtk_window_take_screenshot (GTK_WINDOW (widget), TRUE);
+       g_usleep (G_USEC_PER_SEC);
 
        modest_account_view_set_show_last_update (MODEST_ACCOUNT_VIEW (priv->account_view), TRUE);