[anjal] Add basic frame work for Settings view.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Add basic frame work for Settings view.
- Date: Wed, 29 Apr 2009 02:11:08 -0400 (EDT)
commit 29a4553a07114dbd7394a5d82718e018f7288203
Author: Srinivasa Ragavan <sragavan novell com>
Date: Wed Apr 29 08:15:32 2009 +0530
Add basic frame work for Settings view.
---
src/mail-settings-view.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++
src/mail-settings-view.h | 55 +++++++++++++++++++++++++++++++++
2 files changed, 130 insertions(+), 0 deletions(-)
diff --git a/src/mail-settings-view.c b/src/mail-settings-view.c
new file mode 100644
index 0000000..cf9f369
--- /dev/null
+++ b/src/mail-settings-view.c
@@ -0,0 +1,75 @@
+/*
+ * 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-settings-view.h"
+#include "mail-component.h"
+
+struct _MailSettingsViewPrivate {
+ GtkWidget *tab_str;
+};
+
+G_DEFINE_TYPE (MailSettingsView, mail_settings_view, GTK_TYPE_VBOX)
+
+static void
+mail_settings_view_init (MailSettingsView *shell)
+{
+ shell->priv = g_new0(MailSettingsViewPrivate, 1);
+
+}
+
+static void
+mail_settings_view_finalize (GObject *object)
+{
+ MailSettingsView *shell = (MailSettingsView *)object;
+ MailSettingsViewPrivate *priv = shell->priv;
+
+ G_OBJECT_CLASS (mail_settings_view_parent_class)->finalize (object);
+}
+
+static void
+mail_settings_view_class_init (MailSettingsViewClass *klass)
+{
+ GObjectClass * object_class = G_OBJECT_CLASS (klass);
+
+ mail_settings_view_parent_class = g_type_class_peek_parent (klass);
+ object_class->finalize = mail_settings_view_finalize;
+}
+
+void
+mail_settings_view_construct (MailSettingsView *acview)
+{
+}
+
+MailSettingsView *
+mail_settings_view_new ()
+{
+ MailSettingsView *view = g_object_new (MAIL_SETTINGS_VIEW_TYPE, NULL);
+ mail_settings_view_construct (view);
+
+ return view;
+}
+
diff --git a/src/mail-settings-view.h b/src/mail-settings-view.h
new file mode 100644
index 0000000..9ee176d
--- /dev/null
+++ b/src/mail-settings-view.h
@@ -0,0 +1,55 @@
+/*
+ * 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_SETTINGS_VIEW_H_
+#define _MAIL_SETTINGS_VIEW_H_
+
+#include <gtk/gtk.h>
+#include <webkit/webkit.h>
+
+#define MAIL_SETTINGS_VIEW_TYPE (mail_settings_view_get_type ())
+#define MAIL_SETTINGS_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MAIL_SETTINGS_VIEW_TYPE, MailFolderView))
+#define MAIL_SETTINGS_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MAIL_SETTINGS_VIEW_TYPE, MailFolderViewClass))
+#define IS_MAIL_SETTINGS_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MAIL_SETTINGS_VIEW_TYPE))
+#define IS_MAIL_SETTINGS_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MAIL_SETTINGS_VIEW_TYPE))
+#define MAIL_SETTINGS_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), MAIL_SETTINGS_VIEW_TYPE, MailFolderViewClass))
+
+
+typedef struct _MailSettingsViewPrivate MailSettingsViewPrivate;
+
+typedef struct _MailSettingsView {
+ GtkVBox parent;
+ int type;
+ char *uri;
+ /* Base class of MailChildView ends */
+
+ MailSettingsViewPrivate *priv;
+} MailSettingsView;
+
+typedef struct _MailSettingsViewClass {
+ GtkVBoxClass parent_class;
+
+} MailSettingsViewClass;
+
+MailSettingsView *mail_settings_view_new (void);
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]