2011-01-08 11:48:25 +01:00
|
|
|
/*
|
2020-11-28 09:07:13 +01:00
|
|
|
** Copyright (C) 2011-2020Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
2011-01-08 11:48:25 +01:00
|
|
|
**
|
|
|
|
** 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_VIEW_H__
|
|
|
|
#define __MU_MSG_VIEW_H__
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
2020-11-28 09:07:13 +01:00
|
|
|
#include "mu-msg.hh"
|
2012-03-22 21:37:54 +01:00
|
|
|
|
2011-01-08 11:48:25 +01:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* convenience macros */
|
2021-10-20 11:18:15 +02:00
|
|
|
#define MU_TYPE_MSG_VIEW (mu_msg_view_get_type())
|
|
|
|
#define MU_MSG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MU_TYPE_MSG_VIEW, MuMsgView))
|
|
|
|
#define MU_MSG_VIEW_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass), MU_TYPE_MSG_VIEW, MuMsgViewClass))
|
|
|
|
#define MU_IS_MSG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MU_TYPE_MSG_VIEW))
|
|
|
|
#define MU_IS_MSG_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MU_TYPE_MSG_VIEW))
|
|
|
|
#define MU_MSG_VIEW_GET_CLASS(obj) \
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS((obj), MU_TYPE_MSG_VIEW, MuMsgViewClass))
|
2011-01-08 11:48:25 +01:00
|
|
|
|
2021-10-20 11:18:15 +02:00
|
|
|
typedef struct _MuMsgView MuMsgView;
|
|
|
|
typedef struct _MuMsgViewClass MuMsgViewClass;
|
|
|
|
typedef struct _MuMsgViewPrivate MuMsgViewPrivate;
|
2011-01-08 11:48:25 +01:00
|
|
|
|
|
|
|
struct _MuMsgView {
|
2012-03-22 21:37:54 +01:00
|
|
|
GtkBox parent;
|
2011-01-08 11:48:25 +01:00
|
|
|
/* private */
|
2021-10-20 11:18:15 +02:00
|
|
|
MuMsgViewPrivate* _priv;
|
2011-01-08 11:48:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _MuMsgViewClass {
|
2012-03-22 21:37:54 +01:00
|
|
|
GtkBoxClass parent_class;
|
2011-01-08 11:48:25 +01:00
|
|
|
/* void (* my_event) (MuMsgView* obj); */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* member functions */
|
2021-10-20 11:18:15 +02:00
|
|
|
GType mu_msg_view_get_type(void) G_GNUC_CONST;
|
2011-01-08 11:48:25 +01:00
|
|
|
|
|
|
|
/* parameter-less _new function (constructor) */
|
|
|
|
/* if this is a kind of GtkWidget, it should probably return at GtkWidget* */
|
2021-10-20 11:18:15 +02:00
|
|
|
GtkWidget* mu_msg_view_new(void);
|
2011-01-08 11:48:25 +01:00
|
|
|
|
2020-11-28 09:07:13 +01:00
|
|
|
struct MuMsg;
|
|
|
|
|
2021-10-20 11:18:15 +02:00
|
|
|
void mu_msg_view_set_message(MuMsgView* self, Mu::MuMsg* msg);
|
|
|
|
void mu_msg_view_set_note(MuMsgView* self, const gchar* html);
|
|
|
|
void mu_msg_view_set_message_source(MuMsgView* self, Mu::MuMsg* msg);
|
2011-01-08 11:48:25 +01:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __MU_MSG_VIEW_H__ */
|