aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-view-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-28 02:42:36 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-28 05:35:21 +0800
commit0fda8cb5a28729724c678c4e379c12a79f1e820e (patch)
treec15b326acd83f912b64f39bab8da5da68dbc5959 /modules/mail/e-mail-shell-view-actions.c
parent7dc82b2dcbab7f85504c3061ef45cc4249821e42 (diff)
downloadgsoc2013-evolution-0fda8cb5a28729724c678c4e379c12a79f1e820e.tar
gsoc2013-evolution-0fda8cb5a28729724c678c4e379c12a79f1e820e.tar.gz
gsoc2013-evolution-0fda8cb5a28729724c678c4e379c12a79f1e820e.tar.bz2
gsoc2013-evolution-0fda8cb5a28729724c678c4e379c12a79f1e820e.tar.lz
gsoc2013-evolution-0fda8cb5a28729724c678c4e379c12a79f1e820e.tar.xz
gsoc2013-evolution-0fda8cb5a28729724c678c4e379c12a79f1e820e.tar.zst
gsoc2013-evolution-0fda8cb5a28729724c678c4e379c12a79f1e820e.zip
Remove redundant "vertical view" functions.
Diffstat (limited to 'modules/mail/e-mail-shell-view-actions.c')
-rw-r--r--modules/mail/e-mail-shell-view-actions.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 08a8d12aa0..5e6a9ba9cf 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -866,13 +866,24 @@ action_mail_view_cb (GtkRadioAction *action,
EMailShellView *mail_shell_view)
{
EMailShellContent *mail_shell_content;
- gboolean vertical_view;
+ GtkOrientable *orientable;
+ GtkOrientation orientation;
mail_shell_content = mail_shell_view->priv->mail_shell_content;
- vertical_view = (gtk_radio_action_get_current_value (action) == 1);
+ orientable = GTK_ORIENTABLE (mail_shell_content);
+
+ switch (gtk_radio_action_get_current_value (action)) {
+ case 0:
+ orientation = GTK_ORIENTATION_VERTICAL;
+ break;
+ case 1:
+ orientation = GTK_ORIENTATION_HORIZONTAL;
+ break;
+ default:
+ g_return_if_reached ();
+ }
- e_mail_shell_content_set_vertical_view (
- mail_shell_content, vertical_view);
+ gtk_orientable_set_orientation (orientable, orientation);
}
static void