[anjal] Add basic framework for Mail Account View
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Add basic framework for Mail Account View
- Date: Wed, 29 Apr 2009 02:11:03 -0400 (EDT)
commit 830e7ce39847e07c2e78cfe25e6d5ea11d18a330
Author: Srinivasa Ragavan <sragavan novell com>
Date: Wed Apr 29 08:13:16 2009 +0530
Add basic framework for Mail Account View
---
src/mail-account-view.c | 76 +++++++++++++++++++++++++++++++++++++++++++++++
src/mail-account-view.h | 56 ++++++++++++++++++++++++++++++++++
2 files changed, 132 insertions(+), 0 deletions(-)
diff --git a/src/mail-account-view.c b/src/mail-account-view.c
new file mode 100644
index 0000000..785b074
--- /dev/null
+++ b/src/mail-account-view.c
@@ -0,0 +1,76 @@
+/*
+ * 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 <glib/gi18n.h>
+#include "mail-account-view.h"
+#include <libedataserver/e-account-list.h>
+#include "mail-component.h"
+
+struct _MailAccountViewPrivate {
+ GtkWidget *tab_str;
+};
+
+G_DEFINE_TYPE (MailAccountView, mail_account_view, GTK_TYPE_VBOX)
+
+static void
+mail_account_view_init (MailAccountView *shell)
+{
+ shell->priv = g_new0(MailAccountViewPrivate, 1);
+
+}
+
+static void
+mail_account_view_finalize (GObject *object)
+{
+ MailAccountView *shell = (MailAccountView *)object;
+ MailAccountViewPrivate *priv = shell->priv;
+
+ G_OBJECT_CLASS (mail_account_view_parent_class)->finalize (object);
+}
+
+static void
+mail_account_view_class_init (MailAccountViewClass *klass)
+{
+ GObjectClass * object_class = G_OBJECT_CLASS (klass);
+
+ mail_account_view_parent_class = g_type_class_peek_parent (klass);
+ object_class->finalize = mail_account_view_finalize;
+}
+
+void
+mail_account_view_construct (MailAccountView *acview)
+{
+}
+
+MailAccountView *
+mail_account_view_new ()
+{
+ MailAccountView *view = g_object_new (MAIL_ACCOUNT_VIEW_TYPE, NULL);
+ mail_account_view_construct (view);
+
+ return view;
+}
+
diff --git a/src/mail-account-view.h b/src/mail-account-view.h
new file mode 100644
index 0000000..b8a25fa
--- /dev/null
+++ b/src/mail-account-view.h
@@ -0,0 +1,56 @@
+/*
+ * 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)
+ *
+ */
+
+#ifndef _MAIL_ACCOUNT_VIEW_H_
+#define _MAIL_ACCOUNT_VIEW_H_
+
+#include <gtk/gtk.h>
+#include <webkit/webkit.h>
+
+#define MAIL_ACCOUNT_VIEW_TYPE (mail_account_view_get_type ())
+#define MAIL_ACCOUNT_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MAIL_ACCOUNT_VIEW_TYPE, MailFolderView))
+#define MAIL_ACCOUNT_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MAIL_ACCOUNT_VIEW_TYPE, MailFolderViewClass))
+#define IS_MAIL_ACCOUNT_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MAIL_ACCOUNT_VIEW_TYPE))
+#define IS_MAIL_ACCOUNT_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MAIL_ACCOUNT_VIEW_TYPE))
+#define MAIL_ACCOUNT_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), MAIL_ACCOUNT_VIEW_TYPE, MailFolderViewClass))
+
+struct _EAccount;
+
+typedef struct _MailAccountViewPrivate MailAccountViewPrivate;
+
+typedef struct _MailAccountView {
+ GtkVBox parent;
+ int type;
+ char *uri;
+ /* Base class of MailChildView ends */
+
+ MailAccountViewPrivate *priv;
+} MailAccountView;
+
+typedef struct _MailAccountViewClass {
+ GtkVBoxClass parent_class;
+
+} MailAccountViewClass;
+
+MailAccountView *mail_account_view_new (void);
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]