aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeremy Wise <jwise@src.gnome.org>2000-08-21 11:23:26 +0800
committerJeremy Wise <jwise@src.gnome.org>2000-08-21 11:23:26 +0800
commit5b04deeae30fd6161ff79f1a8235f72c69676beb (patch)
tree68e133a26a3cdca4d09e16863879037f24e04f94 /mail/folder-browser.c
parent6426c17f2613f6d9e00472e3fbedcfc378500133 (diff)
downloadgsoc2013-evolution-5b04deeae30fd6161ff79f1a8235f72c69676beb.tar.gz
gsoc2013-evolution-5b04deeae30fd6161ff79f1a8235f72c69676beb.tar.zst
gsoc2013-evolution-5b04deeae30fd6161ff79f1a8235f72c69676beb.zip
Added fb_resize_cb to folder-browser.c
svn path=/trunk/; revision=4897
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 8534378143..44da49e0e4 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -31,6 +31,8 @@
#define PARENT_TYPE (gtk_table_get_type ())
+static void fb_resize_cb (GtkWidget *w, GtkAllocation *a);
+
static GtkObjectClass *folder_browser_parent_class;
static void oc_destroy (gpointer obj, gpointer user)
@@ -386,9 +388,12 @@ folder_browser_gui_init (FolderBrowser *fb)
e_paned_add1 (E_PANED (fb->vpaned), fb->message_list_w);
gtk_widget_show (fb->message_list_w);
+ /* (jwise) <-- for searching purposes :) */
+ gtk_signal_connect (GTK_OBJECT (fb->message_list_w), "size_allocate",
+ GTK_SIGNAL_FUNC (fb_resize_cb), NULL);
+
e_paned_add2 (E_PANED (fb->vpaned), GTK_WIDGET (fb->mail_display));
e_paned_set_position (E_PANED (fb->vpaned), mail_config_paned_size());
-
gtk_widget_show (GTK_WIDGET (fb->mail_display));
gtk_widget_show (GTK_WIDGET (fb));
}
@@ -439,3 +444,8 @@ folder_browser_new (void)
E_MAKE_TYPE (folder_browser, "FolderBrowser", FolderBrowser, folder_browser_class_init, folder_browser_init, PARENT_TYPE);
+
+static void fb_resize_cb (GtkWidget *w, GtkAllocation *a)
+{
+ mail_config_set_paned_size (a->height + 90);
+}