aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-03-18 08:07:24 +0800
committerSrinivasa Ragavan <sragavan@gnome.org>2010-03-23 16:48:21 +0800
commitf644fea17fcce98a7b1c9f2f613592797c5a22c1 (patch)
tree8325e92031df0257cfd8efacb5dea330fc2759be /modules/mail
parent73fbebb1b09499f16b07ae9db9c5970b3bf9ca63 (diff)
downloadgsoc2013-evolution-f644fea17fcce98a7b1c9f2f613592797c5a22c1.tar
gsoc2013-evolution-f644fea17fcce98a7b1c9f2f613592797c5a22c1.tar.gz
gsoc2013-evolution-f644fea17fcce98a7b1c9f2f613592797c5a22c1.tar.bz2
gsoc2013-evolution-f644fea17fcce98a7b1c9f2f613592797c5a22c1.tar.lz
gsoc2013-evolution-f644fea17fcce98a7b1c9f2f613592797c5a22c1.tar.xz
gsoc2013-evolution-f644fea17fcce98a7b1c9f2f613592797c5a22c1.tar.zst
gsoc2013-evolution-f644fea17fcce98a7b1c9f2f613592797c5a22c1.zip
Start the mailer's folder sidebar with a reasonable width
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-view.c17
1 files changed, 16 insertions, 1 deletions
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;