From 311055a92833f94cf1e7217af880be4a1e3d375a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Mon, 30 Nov 2009 10:49:03 +0100 Subject: [PATCH] Wait 1 sec before closing the accounts window in order to let hildon-desktop to properly take a screenshot Fixes NB#139348 --- src/hildon2/modest-accounts-window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hildon2/modest-accounts-window.c b/src/hildon2/modest-accounts-window.c index c7f65e5..628329b 100644 --- a/src/hildon2/modest-accounts-window.c +++ b/src/hildon2/modest-accounts-window.c @@ -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); -- 1.7.9.5