* src/widgets/modest-widget-memory.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 17 Apr 2008 10:09:54 +0000 (10:09 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 17 Apr 2008 10:09:54 +0000 (10:09 +0000)
* Fix restore of main window paned position. Problem was that
  we didn't save the position of the paned when the widget was
  not visible (then we never saved the position on closing
  modest) (fixes NB#82173).

pmo-trunk-r4428

src/modest-widget-memory.c

index cb75ae6..f98238c 100644 (file)
@@ -223,7 +223,7 @@ save_settings_paned (ModestConf *conf, GtkPaned *paned, const gchar *name)
 
        /* Don't save the paned position if it's not visible, 
         * because it could not be correct: */
-       if (GTK_WIDGET_VISIBLE (GTK_WIDGET (paned)) && GTK_WIDGET_REALIZED (GTK_WIDGET (paned))) {
+       if (GTK_WIDGET_REALIZED (GTK_WIDGET (paned))) {
                pos = gtk_paned_get_position (paned);
                percent = pos * 100 / GTK_WIDGET (paned)->allocation.width;