From 0d8295135ddb37d16c359beabf4cb2ee4e3792b2 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 13 Sep 2002 17:06:50 +0000 Subject: If the vpaned isn't realized, don't call mail_config_set_paned_size. Fixes * folder-browser.c (fb_resize_cb): If the vpaned isn't realized, don't call mail_config_set_paned_size. Fixes a problem with the saved pane size being repeatedly lost (#29933) svn path=/trunk/; revision=18064 --- mail/ChangeLog | 6 ++++++ mail/folder-browser.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index ddf4198fac..d10d271703 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2002-09-13 Dan Winship + + * folder-browser.c (fb_resize_cb): If the vpaned isn't realized, + don't call mail_config_set_paned_size. Fixes a problem with the + saved pane size being repeatedly lost (#29933) + 2002-09-13 Dan Winship * Mailer.idl: rename this from "Mail.idl" so that the generated .h diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 008d62dd8d..56605dc2ab 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -2275,7 +2275,7 @@ on_selection_changed (GtkObject *obj, gpointer user_data) static void fb_resize_cb (GtkWidget *w, GtkAllocation *a, FolderBrowser *fb) { - if (fb->preview_shown) + if (GTK_WIDGET_REALIZED (w) && fb->preview_shown) mail_config_set_paned_size (a->height); } -- cgit v1.2.3