aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-28 01:38:17 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-28 05:35:21 +0800
commit7dc82b2dcbab7f85504c3061ef45cc4249821e42 (patch)
treec54a1b8936775cfb12d4401f8c18ce85f504aa1d /modules/mail
parent0e1066b431b3d172c18b7be8744875942515e117 (diff)
downloadgsoc2013-evolution-7dc82b2dcbab7f85504c3061ef45cc4249821e42.tar
gsoc2013-evolution-7dc82b2dcbab7f85504c3061ef45cc4249821e42.tar.gz
gsoc2013-evolution-7dc82b2dcbab7f85504c3061ef45cc4249821e42.tar.bz2
gsoc2013-evolution-7dc82b2dcbab7f85504c3061ef45cc4249821e42.tar.lz
gsoc2013-evolution-7dc82b2dcbab7f85504c3061ef45cc4249821e42.tar.xz
gsoc2013-evolution-7dc82b2dcbab7f85504c3061ef45cc4249821e42.tar.zst
gsoc2013-evolution-7dc82b2dcbab7f85504c3061ef45cc4249821e42.zip
Add vertical view to Memos and Tasks.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-content.c15
-rw-r--r--modules/mail/e-mail-shell-view-actions.c2
2 files changed, 5 insertions, 12 deletions
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index 9bea68f9cb..3a4f5aed74 100644
--- a/modules/mail/e-mail-shell-content.c
+++ b/modules/mail/e-mail-shell-content.c
@@ -463,6 +463,10 @@ mail_shell_content_constructed (GObject *object)
gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, FALSE);
gtk_widget_show (widget);
+ e_binding_new (
+ G_OBJECT (object), "preview-visible",
+ G_OBJECT (widget), "visible");
+
container = widget;
widget = gtk_scrolled_window_new (NULL, NULL);
@@ -783,22 +787,11 @@ void
e_mail_shell_content_set_preview_visible (EMailShellContent *mail_shell_content,
gboolean preview_visible)
{
- GtkPaned *paned;
- GtkWidget *child;
-
g_return_if_fail (E_IS_MAIL_SHELL_CONTENT (mail_shell_content));
if (preview_visible == mail_shell_content->priv->preview_visible)
return;
- paned = GTK_PANED (mail_shell_content->priv->paned);
- child = gtk_paned_get_child2 (paned);
-
- if (preview_visible)
- gtk_widget_show (child);
- else
- gtk_widget_hide (child);
-
/* If we're showing the preview, tell EMailReader to reload the
* selected message. This should force it to download the full
* message if necessary, so we don't get an empty preview. */
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 22bd86320b..08a8d12aa0 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -1322,7 +1322,7 @@ static GtkRadioActionEntry mail_view_entries[] = {
/* This action represents the initial active mail view.
* It should not be visible in the UI, nor should it be
* possible to switch to it from another shell view. */
- { "mail-view-internal",
+ { "mail-view-initial",
NULL,
NULL,
NULL,