diff options
author | Jeremy Wise <jwise@src.gnome.org> | 2000-08-09 11:19:08 +0800 |
---|---|---|
committer | Jeremy Wise <jwise@src.gnome.org> | 2000-08-09 11:19:08 +0800 |
commit | f4a16f3c8d42b164813c7273c1991fd81958e1f0 (patch) | |
tree | 0be9d9b6d6ad66357f199141b88d13bcbd43f423 /mail/mail-config.c | |
parent | 520a2e89aa4461e14a4893b0369d70091bff7cb3 (diff) | |
download | gsoc2013-evolution-f4a16f3c8d42b164813c7273c1991fd81958e1f0.tar.gz gsoc2013-evolution-f4a16f3c8d42b164813c7273c1991fd81958e1f0.tar.zst gsoc2013-evolution-f4a16f3c8d42b164813c7273c1991fd81958e1f0.zip |
Basic framework for saving the size of the vpaned in the main message view
svn path=/trunk/; revision=4623
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 28 |
1 files changed, 26 insertions, 2 deletions
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) { |