From f644fea17fcce98a7b1c9f2f613592797c5a22c1 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 17 Mar 2010 18:07:24 -0600 Subject: Start the mailer's folder sidebar with a reasonable width Signed-off-by: Federico Mena Quintero --- modules/mail/e-mail-shell-view.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c index c3429859f7..aae451c14c 100644 --- a/modules/mail/e-mail-shell-view.c +++ b/modules/mail/e-mail-shell-view.c @@ -933,6 +933,21 @@ mail_shell_view_update_actions (EShellView *shell_view) e_mail_shell_view_update_popup_labels (mail_shell_view); } +/* Vmethod implementation for EShellView::new_shell_sidebar. We create a mail + * folder tree for the mailer. + */ +static GtkWidget * +new_shell_sidebar (EShellView *shell_view) +{ + GtkWidget *sidebar; + PangoLayout *layout; + + sidebar = e_mail_shell_sidebar_new (shell_view); + gtk_widget_set_size_request (sidebar, 300, -1); + + return sidebar; +} + static void mail_shell_view_class_init (EMailShellViewClass *class, GTypeModule *type_module) @@ -957,7 +972,7 @@ mail_shell_view_class_init (EMailShellViewClass *class, shell_view_class->search_options = "/mail-search-options"; shell_view_class->search_rules = "searchtypes.xml"; shell_view_class->new_shell_content = e_mail_shell_content_new; - shell_view_class->new_shell_sidebar = e_mail_shell_sidebar_new; + shell_view_class->new_shell_sidebar = new_shell_sidebar; shell_view_class->toggled = mail_shell_view_toggled; shell_view_class->execute_search = mail_shell_view_execute_search; shell_view_class->update_actions = mail_shell_view_update_actions; -- cgit