From c38f7da6ed1eb22494fb989aacbff36414fcdd97 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 26 Feb 2010 14:46:21 +0530 Subject: Add control center capplet from anjal to evolution. Name it evolution-settings. --- capplet/anjal-mail-view.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 capplet/anjal-mail-view.c (limited to 'capplet/anjal-mail-view.c') 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 + * + * + * Authors: + * Srinivasa Ragavan + * + * Copyright (C) 2009 Novell, Inc. (www.novell.com) + * + */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "anjal-mail-view.h" +#include +#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); +} + -- cgit v1.2.3