diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-09-22 13:15:03 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-09-22 13:15:03 (GMT) |
commit | 74a35bf6c95bb001463582fb2cebb2d815cdbeab (patch) | |
tree | 5c04679029a0463a4ef8f4d3ca2eaa7b8b8da371 | |
parent | 512ce5e411c8b0e614097cd84ecf209dc8ad0d7e (diff) |
Fix window size persistance
2005-09-22 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-application.c: (ev_application_open_uri):
Fix window size persistance
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | shell/ev-application.c | 7 |
2 files changed, 11 insertions, 2 deletions
@@ -1,5 +1,11 @@ 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): Based on a patch from carlosgc@gnome.org. Mouse buttons diff --git a/shell/ev-application.c b/shell/ev-application.c index 2b47629..209d706 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); |