]> www.fi.muni.cz Git - evince.git/commitdiff
Fix window size persistance
authorMarco Pesenti Gritti <mpg@redhat.com>
Thu, 22 Sep 2005 13:15:03 +0000 (13:15 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 22 Sep 2005 13:15:03 +0000 (13:15 +0000)
2005-09-22  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/ev-application.c: (ev_application_open_uri):

        Fix window size persistance

ChangeLog
shell/ev-application.c

index be7aca19c89ee9d4ea378cb83f7b319747066f69..216664774098972170d25d2bc8e160cd63a4769c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-22  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * shell/ev-application.c: (ev_application_open_uri):
+
+       Fix window size persistance
+
 2005-09-22  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * shell/ev-view.c: (ev_view_button_release_event):
index 2b4762927818627945823d599e60e067e6f4cdf3..209d70637d7b6c71dfccd524ddff386fbef5b50e 100644 (file)
@@ -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);