New set of basic views
This commit is contained in:
committed by
Matthew Barnes
parent
8ccf32a107
commit
2dfdc2cd25
75
mail/e-mail-notebook-view.c
Normal file
75
mail/e-mail-notebook-view.c
Normal file
@ -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@gnome.org>
|
||||
*
|
||||
* Copyright (C) 2010 Intel corporation. (www.intel.com)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include "e-mail-notebook-view.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (EMailNotebookView, e_mail_notebook_view, GTK_TYPE_VBOX)
|
||||
|
||||
enum {
|
||||
PANE_CLOSE,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
static guint signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
static void
|
||||
e_mail_notebook_view_init (EMailNotebookView *shell)
|
||||
{
|
||||
shell->priv = g_new0(EMailNotebookViewPrivate, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
e_mail_notebook_view_finalize (GObject *object)
|
||||
{
|
||||
/* EMailNotebookView *shell = (EMailNotebookView *)object; */
|
||||
|
||||
G_OBJECT_CLASS (e_mail_notebook_view_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
e_mail_notebook_view_class_init (EMailNotebookViewClass *klass)
|
||||
{
|
||||
GObjectClass * object_class = G_OBJECT_CLASS (klass);
|
||||
|
||||
e_mail_notebook_view_parent_class = g_type_class_peek_parent (klass);
|
||||
object_class->finalize = e_mail_notebook_view_finalize;
|
||||
|
||||
signals[PANE_CLOSE] =
|
||||
g_signal_new ("pane-close",
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (EMailNotebookViewClass , view_close),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
49
mail/e-mail-notebook-view.h
Normal file
49
mail/e-mail-notebook-view.h
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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@gnome.org>
|
||||
*
|
||||
* Copyright (C) 2010 Intel corporation. (www.intel.com)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _E_MAIL_NOTEBOOK_VIEW_H_
|
||||
#define _E_MAIL_NOTEBOOK_VIEW_H_
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define E_MAIL_NOTEBOOK_VIEW_TYPE (e_mail_notebook_view_get_type ())
|
||||
#define E_MAIL_NOTEBOOK_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_MAIL_NOTEBOOK_VIEW_TYPE, MailFolderView))
|
||||
#define E_MAIL_NOTEBOOK_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_MAIL_NOTEBOOK_VIEW_TYPE, MailFolderViewClass))
|
||||
#define IS_E_MAIL_NOTEBOOK_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_MAIL_NOTEBOOK_VIEW_TYPE))
|
||||
#define IS_E_MAIL_NOTEBOOK_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_MAIL_NOTEBOOK_VIEW_TYPE))
|
||||
#define E_MAIL_NOTEBOOK_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), E_MAIL_NOTEBOOK_VIEW_TYPE, EMailNotebookViewClass))
|
||||
|
||||
|
||||
typedef struct _EMailNotebookViewPrivate EMailNotebookViewPrivate;
|
||||
|
||||
typedef struct _EMailNotebookView {
|
||||
GtkVBox parent;
|
||||
|
||||
EMailNotebookViewPrivate *priv;
|
||||
} EMailNotebookView;
|
||||
|
||||
typedef struct _EMailNotebookViewClass {
|
||||
GtkVBoxClass parent_class;
|
||||
|
||||
} EMailNotebookViewClass;
|
||||
|
||||
#endif
|
||||
75
mail/e-mail-paned-view.c
Normal file
75
mail/e-mail-paned-view.c
Normal file
@ -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@gnome.org>
|
||||
*
|
||||
* Copyright (C) 2010 Intel corporation. (www.intel.com)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include "e-mail-pane.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (EMailPanedView, e_mail_paned_view, GTK_TYPE_VBOX)
|
||||
|
||||
enum {
|
||||
PANE_CLOSE,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
static guint signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
static void
|
||||
e_mail_paned_view_init (EMailPanedView *shell)
|
||||
{
|
||||
shell->priv = g_new0(EMailPanedViewPrivate, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
e_mail_paned_view_finalize (GObject *object)
|
||||
{
|
||||
/* EMailPanedView *shell = (EMailPanedView *)object; */
|
||||
|
||||
G_OBJECT_CLASS (e_mail_paned_view_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
e_mail_paned_view_class_init (EMailPanedViewClass *klass)
|
||||
{
|
||||
GObjectClass * object_class = G_OBJECT_CLASS (klass);
|
||||
|
||||
e_mail_paned_view_parent_class = g_type_class_peek_parent (klass);
|
||||
object_class->finalize = e_mail_paned_view_finalize;
|
||||
|
||||
signals[PANE_CLOSE] =
|
||||
g_signal_new ("pane-close",
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (EMailPanedViewClass , view_close),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
49
mail/e-mail-paned-view.h
Normal file
49
mail/e-mail-paned-view.h
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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@gnome.org>
|
||||
*
|
||||
* Copyright (C) 2010 Intel corporation. (www.intel.com)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _E_MAIL_PANED_VIEW_H_
|
||||
#define _E_MAIL_PANED_VIEW_H_
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define E_MAIL_PANED_VIEW_TYPE (e_mail_paned_view_get_type ())
|
||||
#define E_MAIL_PANED_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_MAIL_PANED_VIEW_TYPE, MailFolderView))
|
||||
#define E_MAIL_PANED_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_MAIL_PANED_VIEW_TYPE, MailFolderViewClass))
|
||||
#define IS_E_MAIL_PANED_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_MAIL_PANED_VIEW_TYPE))
|
||||
#define IS_E_MAIL_PANED_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_MAIL_PANED_VIEW_TYPE))
|
||||
#define E_MAIL_PANED_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), E_MAIL_PANED_VIEW_TYPE, EMailPanedViewClass))
|
||||
|
||||
|
||||
typedef struct _EMailPanedViewPrivate EMailPanedViewPrivate;
|
||||
|
||||
typedef struct _EMailPanedView {
|
||||
GtkVBox parent;
|
||||
|
||||
EMailPanedViewPrivate *priv;
|
||||
} EMailPanedView;
|
||||
|
||||
typedef struct _EMailPanedViewClass {
|
||||
GtkVBoxClass parent_class;
|
||||
|
||||
} EMailPanedViewClass;
|
||||
|
||||
#endif
|
||||
75
mail/e-mail-view.c
Normal file
75
mail/e-mail-view.c
Normal file
@ -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@gnome.org>
|
||||
*
|
||||
* Copyright (C) 2010 Intel corporation. (www.intel.com)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include "e-mail-view.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (EMailView, e_mail_view, GTK_TYPE_VBOX)
|
||||
|
||||
enum {
|
||||
PANE_CLOSE,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
static guint signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
static void
|
||||
e_mail_view_init (EMailView *shell)
|
||||
{
|
||||
shell->priv = g_new0(EMailViewPrivate, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
e_mail_view_finalize (GObject *object)
|
||||
{
|
||||
/* EMailView *shell = (EMailView *)object; */
|
||||
|
||||
G_OBJECT_CLASS (e_mail_view_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
e_mail_view_class_init (EMailViewClass *klass)
|
||||
{
|
||||
GObjectClass * object_class = G_OBJECT_CLASS (klass);
|
||||
|
||||
e_mail_view_parent_class = g_type_class_peek_parent (klass);
|
||||
object_class->finalize = e_mail_view_finalize;
|
||||
|
||||
signals[PANE_CLOSE] =
|
||||
g_signal_new ("pane-close",
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (EMailViewClass , view_close),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
49
mail/e-mail-view.h
Normal file
49
mail/e-mail-view.h
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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@gnome.org>
|
||||
*
|
||||
* Copyright (C) 2010 Intel corporation. (www.intel.com)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _E_MAIL_VIEW_H_
|
||||
#define _E_MAIL_VIEW_H_
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define E_MAIL_VIEW_TYPE (e_mail_view_get_type ())
|
||||
#define E_MAIL_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_MAIL_VIEW_TYPE, MailFolderView))
|
||||
#define E_MAIL_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_MAIL_VIEW_TYPE, MailFolderViewClass))
|
||||
#define IS_E_MAIL_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_MAIL_VIEW_TYPE))
|
||||
#define IS_E_MAIL_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_MAIL_VIEW_TYPE))
|
||||
#define E_MAIL_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), E_MAIL_VIEW_TYPE, EMailViewClass))
|
||||
|
||||
|
||||
typedef struct _EMailViewPrivate EMailViewPrivate;
|
||||
|
||||
typedef struct _EMailView {
|
||||
GtkVBox parent;
|
||||
|
||||
EMailViewPrivate *priv;
|
||||
} EMailView;
|
||||
|
||||
typedef struct _EMailViewClass {
|
||||
GtkVBoxClass parent_class;
|
||||
|
||||
} EMailViewClass;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user