aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
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')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/folder-browser.c12
2 files changed, 15 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index bd0652e1b4..e05e83f780 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,7 @@
+2000-08-20 Jeremy Wise <jwise@pathwaynet.com>
+ * folder-browser.c: (fb_resize_cb) Added function to monitor resize
+ of the e_paned in the main view.
+
2000-08-17 Peter Williams <peterw@helixcode.com>
* folder-browser-factory.c (control_activate): Fix menu item names.
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);
+}