* 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
/* 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;