From f4a16f3c8d42b164813c7273c1991fd81958e1f0 Mon Sep 17 00:00:00 2001 From: Jeremy Wise Date: Wed, 9 Aug 2000 03:19:08 +0000 Subject: Basic framework for saving the size of the vpaned in the main message view svn path=/trunk/; revision=4623 --- mail/mail-config.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'mail/mail-config.c') 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) { -- cgit