Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (57 sloc) 2.324 kB
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
1 /*
2 ** Copyright (C) 2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
3 **
4 ** This program is free software; you can redistribute it and/or modify it
5 ** under the terms of the GNU General Public License as published by the
6 ** Free Software Foundation; either version 3, or (at your option) any
7 ** later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software Foundation,
16 ** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 **
18 */
19
20 #ifndef __MUG_MSG_VIEW_H__
21 #define __MUG_MSG_VIEW_H__
22
23 #include <gtk/gtk.h>
24 /* other include files */
25
3fb7e5d @djcb * WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)
authored
26
27
28
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
29 G_BEGIN_DECLS
30 /* convenience macros */
31 #define MUG_TYPE_MSG_VIEW (mug_msg_view_get_type())
32 #define MUG_MSG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MUG_TYPE_MSG_VIEW,MugMsgView))
33 #define MUG_MSG_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),MUG_TYPE_MSG_VIEW,MugMsgViewClass))
34 #define MUG_IS_MSG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),MUG_TYPE_MSG_VIEW))
35 #define MUG_IS_MSG_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MUG_TYPE_MSG_VIEW))
36 #define MUG_MSG_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MUG_TYPE_MSG_VIEW,MugMsgViewClass))
37 typedef struct _MugMsgView MugMsgView;
38 typedef struct _MugMsgViewClass MugMsgViewClass;
39
40 struct _MugMsgView {
3fb7e5d @djcb * WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)
authored
41 #ifdef HAVE_GTK3
42 GtkBox parent;
43 #else
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
44 GtkVBox parent;
3fb7e5d @djcb * WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)
authored
45 #endif /*!HAVE_GTK3*/
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
46 };
47
48 struct _MugMsgViewClass {
3fb7e5d @djcb * WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)
authored
49 #ifdef HAVE_GTK3
50 GtkBoxClass parent_class;
51 #else
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
52 GtkVBoxClass parent_class;
3fb7e5d @djcb * WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)
authored
53 #endif /*!HAVE_GTK3*/
54
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
55 /* insert signal callback declarations, e.g. */
56 /* void (* my_event) (MugMsg* obj); */
57 };
58
59 /* member functions */
60 GType mug_msg_view_get_type (void) G_GNUC_CONST;
61
62 /* parameter-less _new function (constructor) */
63 /* if this is a kind of GtkWidget, it should probably return at GtkWidget* */
64 GtkWidget* mug_msg_view_new (void);
65 gboolean mug_msg_view_set_msg (MugMsgView * self, const char *msgpath);
36d0c66 @djcb * toys/mug2: simple welcome message in mug2
authored
66 void mug_msg_view_set_note (MugMsgView * self, const char* html);
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
67
68 G_END_DECLS
69 #endif /* __MUG_MSG_VIEW_H__ */
Something went wrong with that request. Please try again.