]> www.fi.muni.cz Git - evince.git/commitdiff
Remember if last window was maximized. Fix for the bug #323797.
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Thu, 29 Dec 2005 16:34:59 +0000 (16:34 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Thu, 29 Dec 2005 16:34:59 +0000 (16:34 +0000)
* shell/ev-window.c: (setup_view_from_metadata):

Remember if last window was maximized. Fix for the
bug #323797.

ChangeLog
shell/ev-window.c

index 9b17f081e47c3edb292395df9570f153ea766280..2053f90e3f93eab5ba06830c1fca0754682dee6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-29  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * shell/ev-window.c: (setup_view_from_metadata):
+       
+       Remember if last window was maximized. Fix for the
+       bug #323797.
+
 2005-12-28  Abel Cheung  <maddog@linuxhall.org>
 
        * configure.ac: Added "zh_HK" to ALL_LINGUAS.
index 8d3601b5f6c7678495037a0ec2a87a1380ea7614..ebf810327aaecf1d373ff91701d48ffa835cca53 100644 (file)
@@ -970,7 +970,7 @@ setup_view_from_metadata (EvWindow *window)
        if (!GTK_WIDGET_VISIBLE (window)) {
                gboolean restore_size = TRUE;
 
-               if (ev_metadata_manager_get (uri, "window_maximized", &maximized, TRUE)) {
+               if (ev_metadata_manager_get (uri, "window_maximized", &maximized, FALSE)) {
                        if (g_value_get_boolean (&maximized)) {
                                gtk_window_maximize (GTK_WINDOW (window));
                                restore_size = FALSE;