[evolution] Start the mailer's folder sidebar with a reasonable width
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Start the mailer's folder sidebar with a reasonable width
- Date: Tue, 23 Mar 2010 09:00:56 +0000 (UTC)
commit f644fea17fcce98a7b1c9f2f613592797c5a22c1
Author: Federico Mena Quintero <federico novell com>
Date: Wed Mar 17 18:07:24 2010 -0600
Start the mailer's folder sidebar with a reasonable width
Signed-off-by: Federico Mena Quintero <federico novell com>
modules/mail/e-mail-shell-view.c | 17 ++++++++++++++++-
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 c342985..aae451c 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]