aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-view.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-07-14 16:17:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-26 09:29:59 +0800
commitb9564c4d01c08c976e01256b308e3f2891c6e164 (patch)
tree90999088a74fb9f7f7d4064af0a0431b412ca85c /mail/e-mail-view.c
parent75de89ef04f0bd69fe5d33919e281bdb8c30bd9e (diff)
downloadgsoc2013-evolution-b9564c4d01c08c976e01256b308e3f2891c6e164.tar.gz
gsoc2013-evolution-b9564c4d01c08c976e01256b308e3f2891c6e164.tar.zst
gsoc2013-evolution-b9564c4d01c08c976e01256b308e3f2891c6e164.zip
Add folder pane for tabbed browser.
Diffstat (limited to 'mail/e-mail-view.c')
-rw-r--r--mail/e-mail-view.c63
1 files changed, 62 insertions, 1 deletions
diff --git a/mail/e-mail-view.c b/mail/e-mail-view.c
index 976d223f33..98f741d76a 100644
--- a/mail/e-mail-view.c
+++ b/mail/e-mail-view.c
@@ -34,6 +34,8 @@ G_DEFINE_TYPE (EMailView, e_mail_view, GTK_TYPE_VBOX)
enum {
PANE_CLOSE,
+ VIEW_CHANGED,
+ OPEN_MAIL,
LAST_SIGNAL
};
@@ -108,7 +110,13 @@ e_mail_view_class_init (EMailViewClass *klass)
klass->set_search_strings = NULL;
klass->get_view_instance = NULL;
klass->update_view_instance = NULL;
-
+ klass->set_orientation = NULL;
+ klass->get_orientation = NULL;
+ klass->set_show_deleted = NULL;
+ klass->get_show_deleted = NULL;
+ klass->set_preview_visible = NULL;
+ klass->get_preview_visible = NULL;
+
signals[PANE_CLOSE] =
g_signal_new ("pane-close",
G_OBJECT_CLASS_TYPE (object_class),
@@ -117,6 +125,24 @@ e_mail_view_class_init (EMailViewClass *klass)
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+
+ signals[VIEW_CHANGED] =
+ g_signal_new ("view-changed",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_FIRST,
+ G_STRUCT_OFFSET (EMailViewClass , view_changed),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
+ signals[OPEN_MAIL] =
+ g_signal_new ("open-mail",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_FIRST,
+ G_STRUCT_OFFSET (EMailViewClass , open_mail),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__STRING,
+ G_TYPE_NONE, 1, G_TYPE_STRING);
/**
* EMailView:shell-content
*
@@ -160,3 +186,38 @@ e_mail_view_get_searchbar (EMailView *view)
return E_MAIL_VIEW_GET_CLASS (view)->get_searchbar (view);
}
+void
+e_mail_view_set_orientation (EMailView *view, GtkOrientation orientation)
+{
+ E_MAIL_VIEW_GET_CLASS (view)->set_orientation (view, orientation);
+}
+
+GtkOrientation
+e_mail_view_get_orientation (EMailView *view)
+{
+ return E_MAIL_VIEW_GET_CLASS (view)->get_orientation (view);
+}
+
+void
+e_mail_view_set_preview_visible (EMailView *view, gboolean visible)
+{
+ E_MAIL_VIEW_GET_CLASS (view)->set_preview_visible (view, visible);
+}
+
+gboolean
+e_mail_view_get_preview_visible (EMailView *view)
+{
+ return E_MAIL_VIEW_GET_CLASS (view)->get_preview_visible (view);
+}
+
+void
+e_mail_view_set_show_deleted (EMailView *view, gboolean show_deleted)
+{
+ E_MAIL_VIEW_GET_CLASS (view)->set_show_deleted (view, show_deleted);
+}
+
+gboolean
+e_mail_view_get_show_deleted (EMailView *view)
+{
+ return E_MAIL_VIEW_GET_CLASS (view)->get_show_deleted (view);
+}