/* ** Copyright (C) 2011 Dirk-Jan C. Binnema ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of the GNU General Public License as published by the ** Free Software Foundation; either version 3, or (at your option) any ** later version. ** ** 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 General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software Foundation, ** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ** */ #ifndef __MU_MSG_NORMAL_VIEW_H__ #define __MU_MSG_NORMAL_VIEW_H__ #include #include G_BEGIN_DECLS /* convenience macros */ #define MU_TYPE_MSG_NORMAL_VIEW (mu_msg_normal_view_get_type()) #define MU_MSG_NORMAL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MU_TYPE_MSG_NORMAL_VIEW,MuMsgNormalView)) #define MU_MSG_NORMAL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),MU_TYPE_MSG_NORMAL_VIEW,MuMsgNormalViewClass)) #define MU_IS_MSG_NORMAL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),MU_TYPE_MSG_NORMAL_VIEW)) #define MU_IS_MSG_NORMAL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MU_TYPE_MSG_NORMAL_VIEW)) #define MU_MSG_NORMAL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MU_TYPE_MSG_NORMAL_VIEW,MuMsgNormalViewClass)) typedef struct _MuMsgNormalView MuMsgNormalView; typedef struct _MuMsgNormalViewClass MuMsgNormalViewClass; typedef struct _MuMsgNormalViewPrivate MuMsgNormalViewPrivate; struct _MuMsgNormalView { GtkVBox parent; /* insert public members, if any */ /* private */ MuMsgNormalViewPrivate *_priv; }; struct _MuMsgNormalViewClass { GtkVBoxClass parent_class; /* supported actions: "view-source" */ void (* action_requested) (MuMsgNormalView* self, const char* action); }; /* member functions */ GType mu_msg_normal_view_get_type (void) G_GNUC_CONST; GtkWidget* mu_msg_normal_view_new (void); void mu_msg_normal_view_set_message (MuMsgNormalView *self, MuMsg *msg); G_END_DECLS #endif /* __MU_MSG_NORMAL_VIEW_H__ */