aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser.c3
-rw-r--r--mail/mail-config.c28
-rw-r--r--mail/mail-config.h3
4 files changed, 36 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 1f89800c6a..da69ba2d5e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-08 Jeremy Wise <jwise@pathwaynet.com>
+ * mail-config.[ch], folder-browser.c: Added configuration work to
+ save the size of the vpaned widget. It will be functional when the
+ e_paned widget emits a "resized" widget
+
2000-08-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.h: Added void as an argument to functions not
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 5665d8bce3..4eb300214d 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -24,6 +24,7 @@
#include "filter/filter-input.h"
#include "mail-local.h"
+#include "mail-config.h"
#define PARENT_TYPE (gtk_table_get_type ())
@@ -454,7 +455,7 @@ folder_browser_gui_init (FolderBrowser *fb)
gtk_widget_show (fb->message_list_w);
e_paned_add2 (E_PANED (fb->vpaned), GTK_WIDGET (fb->mail_display));
- e_paned_set_position (E_PANED (fb->vpaned), 200);
+ 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));
diff --git a/mail/mail-config.c b/mail/mail-config.c
index a62abfee5c..fa131121bf 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -249,7 +249,13 @@ mail_config_read ()
evolution_dir);
config->thread_list = gnome_config_get_bool (str);
g_free (str);
-
+
+ /* Size of vpaned in mail view */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/paned_size=200",
+ evolution_dir);
+ config->paned_size = gnome_config_get_int (str);
+ g_free (str);
+
gnome_config_sync ();
}
@@ -359,7 +365,13 @@ mail_config_write_on_exit ()
evolution_dir);
gnome_config_set_bool (str, config->thread_list);
g_free (str);
-
+
+ /* Size of vpaned in mail view */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/paned_size",
+ evolution_dir);
+ gnome_config_set_int (str, config->paned_size);
+ g_free (str);
+
gnome_config_sync ();
}
@@ -412,6 +424,18 @@ mail_config_set_thread_list (gboolean value)
config->thread_list = value;
}
+gint
+mail_config_paned_size ()
+{
+ return config->paned_size;
+}
+
+void
+mail_config_set_paned_size (gint value)
+{
+ config->paned_size = value;
+}
+
MailConfig *
mail_config_fetch (void)
{
diff --git a/mail/mail-config.h b/mail/mail-config.h
index a212a676be..df46ae4356 100644
--- a/mail/mail-config.h
+++ b/mail/mail-config.h
@@ -48,6 +48,7 @@ typedef struct
MailConfigService *transport;
gboolean send_html;
gboolean thread_list;
+ gint paned_size;
} MailConfig;
/* Identities */
@@ -74,7 +75,9 @@ MailConfigService *mail_config_get_default_source (void);
MailConfigService *mail_config_get_transport (void);
gboolean mail_config_send_html (void);
gboolean mail_config_thread_list (void);
+gint mail_config_paned_size (void);
void mail_config_set_thread_list (gboolean value);
+void mail_config_set_paned_size (gint size);
MailConfig *mail_config_fetch (void);
#endif