From: Marco Pesenti Gritti Date: Thu, 22 Sep 2005 13:15:03 +0000 (+0000) Subject: Fix window size persistance X-Git-Tag: EVINCE_0_5_0~143 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=74a35bf6c95bb001463582fb2cebb2d815cdbeab;p=evince.git Fix window size persistance 2005-09-22 Marco Pesenti Gritti * shell/ev-application.c: (ev_application_open_uri): Fix window size persistance --- diff --git a/ChangeLog b/ChangeLog index be7aca19..21666477 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-22 Marco Pesenti Gritti + + * shell/ev-application.c: (ev_application_open_uri): + + Fix window size persistance + 2005-09-22 Marco Pesenti Gritti * shell/ev-view.c: (ev_view_button_release_event): diff --git a/shell/ev-application.c b/shell/ev-application.c index 2b476292..209d7063 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -205,11 +205,14 @@ ev_application_open_uri (EvApplication *application, if (new_window == NULL) { new_window = EV_WINDOW (ev_window_new ()); - gtk_widget_show (GTK_WIDGET (new_window)); } - + + /* We need to load uri before showing the window, so + we can restore window size without flickering */ ev_window_open_uri (new_window, uri); + gtk_widget_show (GTK_WIDGET (new_window)); + #ifdef HAVE_GTK_WINDOW_PRESENT_WITH_TIME gtk_window_present_with_time (GTK_WINDOW (new_window), timestamp);