aboutsummaryrefslogtreecommitdiffstats
path: root/capplet/anjal-mail-view.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-02-26 17:16:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-14 09:49:49 +0800
commitc38f7da6ed1eb22494fb989aacbff36414fcdd97 (patch)
tree4d7cdf325110072f15fa3ffebf256c82209cee5a /capplet/anjal-mail-view.c
parent304777ae4cd03026fcee98c0863e9e43f483c97a (diff)
downloadgsoc2013-evolution-c38f7da6ed1eb22494fb989aacbff36414fcdd97.tar
gsoc2013-evolution-c38f7da6ed1eb22494fb989aacbff36414fcdd97.tar.gz
gsoc2013-evolution-c38f7da6ed1eb22494fb989aacbff36414fcdd97.tar.bz2
gsoc2013-evolution-c38f7da6ed1eb22494fb989aacbff36414fcdd97.tar.lz
gsoc2013-evolution-c38f7da6ed1eb22494fb989aacbff36414fcdd97.tar.xz
gsoc2013-evolution-c38f7da6ed1eb22494fb989aacbff36414fcdd97.tar.zst
gsoc2013-evolution-c38f7da6ed1eb22494fb989aacbff36414fcdd97.zip
Add control center capplet from anjal to evolution. Name it
evolution-settings.
Diffstat (limited to 'capplet/anjal-mail-view.c')
-rw-r--r--capplet/anjal-mail-view.c139
1 files changed, 139 insertions, 0 deletions
diff --git a/capplet/anjal-mail-view.c b/capplet/anjal-mail-view.c
new file mode 100644
index 0000000000..5178b56422
--- /dev/null
+++ b/capplet/anjal-mail-view.c
@@ -0,0 +1,139 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with the program; if not, see <http://www.gnu.org/licenses/>
+ *
+ *
+ * Authors:
+ * Srinivasa Ragavan <sragavan@novell.com>
+ *
+ * Copyright (C) 2009 Novell, Inc. (www.novell.com)
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "anjal-mail-view.h"
+#include <glib/gi18n.h>
+#include "mail/em-utils.h"
+#include "mail/mail-send-recv.h"
+#include "mail/mail-ops.h"
+#include "mail/em-folder-tree.h"
+
+
+struct _AnjalMailViewPrivate {
+
+ gboolean started;
+};
+
+
+G_DEFINE_TYPE (AnjalMailView, anjal_mail_view, GTK_TYPE_NOTEBOOK)
+
+static void
+anjal_mail_view_init (AnjalMailView *shell)
+{
+ shell->priv = g_new0(AnjalMailViewPrivate, 1);
+ shell->priv->started = TRUE;
+}
+
+static void
+anjal_mail_view_finalize (GObject *object)
+{
+ AnjalMailView *shell = (AnjalMailView *)object;
+ AnjalMailViewPrivate *priv = shell->priv;
+
+ g_free (priv);
+
+ G_OBJECT_CLASS (anjal_mail_view_parent_class)->finalize (object);
+}
+
+static void
+view_set_folder_uri (AnjalMailView *mail_view, const gchar *uri)
+{
+}
+static void
+view_set_folder_tree_widget (AnjalMailView *mail_view, GtkWidget *tree)
+{
+}
+static void
+view_set_folder_tree (AnjalMailView *mail_view, EMFolderTree *tree)
+{
+}
+
+static void
+view_set_search (AnjalMailView *mail_view, const char *search)
+{
+}
+
+static void
+view_init_search (AnjalMailView *mail_view, GtkWidget *search)
+{
+}
+
+static void
+anjal_mail_view_class_init (AnjalMailViewClass *klass)
+{
+ GObjectClass * object_class = G_OBJECT_CLASS (klass);
+
+ anjal_mail_view_parent_class = g_type_class_peek_parent (klass);
+ object_class->finalize = anjal_mail_view_finalize;
+ klass->set_folder_uri = view_set_folder_uri;
+ klass->set_folder_tree_widget = view_set_folder_tree_widget;
+ klass->set_folder_tree = view_set_folder_tree;
+ klass->set_search = view_set_search;
+ klass->init_search = view_init_search;
+};
+
+
+AnjalMailView *
+anjal_mail_view_new ()
+{
+ AnjalMailView *shell = g_object_new (ANJAL_MAIL_VIEW_TYPE, NULL);
+
+ return shell;
+}
+
+void
+anjal_mail_view_set_folder_uri (AnjalMailView *mv, const char *uri)
+{
+ if (!mv || !uri)
+ return;
+
+ ANJAL_MAIL_VIEW_GET_CLASS(mv)->set_folder_uri (mv, uri);
+}
+
+void
+anjal_mail_view_set_folder_tree_widget (AnjalMailView *mv, GtkWidget *tree)
+{
+ ANJAL_MAIL_VIEW_GET_CLASS(mv)->set_folder_tree_widget (mv, tree);
+}
+
+void
+anjal_mail_view_set_folder_tree (AnjalMailView *mv, GtkWidget *tree)
+{
+ ANJAL_MAIL_VIEW_GET_CLASS(mv)->set_folder_tree (mv, (EMFolderTree *)tree);
+}
+
+void
+anjal_mail_view_set_search (AnjalMailView *view, const char *search)
+{
+ ANJAL_MAIL_VIEW_GET_CLASS(view)->set_search (view, search);
+}
+
+void
+anjal_mail_view_init_search (AnjalMailView *mv, GtkWidget *search)
+{
+ ANJAL_MAIL_VIEW_GET_CLASS(mv)->init_search (mv, search);
+}
+