1.1.1
by Stefan Ebner
Import upstream version 0.6.1 |
1 |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
2 |
/*
|
|
3 |
* Almanah
|
|
1.1.2
by Angel Abad
Import upstream version 0.7.1 |
4 |
* Copyright (C) Philip Withnall 2008-2009 <philip@tecnocode.co.uk>
|
1.1.1
by Stefan Ebner
Import upstream version 0.6.1 |
5 |
*
|
6 |
* Almanah is free software: you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation, either version 3 of the License, or
|
|
9 |
* (at your option) any later version.
|
|
10 |
*
|
|
11 |
* Almanah is distributed in the hope that it will be useful,
|
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 |
* GNU General Public License for more details.
|
|
15 |
*
|
|
16 |
* You should have received a copy of the GNU General Public License
|
|
17 |
* along with Almanah. If not, see <http://www.gnu.org/licenses/>.
|
|
18 |
*/
|
|
19 |
||
20 |
#ifndef ALMANAH_EVENT_H
|
|
21 |
#define ALMANAH_EVENT_H
|
|
22 |
||
23 |
#include <glib.h> |
|
24 |
#include <glib-object.h> |
|
25 |
#include <gtk/gtk.h> |
|
26 |
||
27 |
G_BEGIN_DECLS
|
|
28 |
||
29 |
#define ALMANAH_TYPE_EVENT (almanah_event_get_type ())
|
|
30 |
#define ALMANAH_EVENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ALMANAH_TYPE_EVENT, AlmanahEvent))
|
|
31 |
#define ALMANAH_EVENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ALMANAH_TYPE_EVENT, AlmanahEventClass))
|
|
32 |
#define ALMANAH_IS_EVENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ALMANAH_TYPE_EVENT))
|
|
33 |
#define ALMANAH_IS_EVENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ALMANAH_TYPE_EVENT))
|
|
34 |
#define ALMANAH_EVENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ALMANAH_TYPE_EVENT, AlmanahEventClass))
|
|
35 |
||
36 |
typedef struct _AlmanahEventPrivate AlmanahEventPrivate; |
|
37 |
||
38 |
typedef struct { |
|
39 |
GObject parent; |
|
40 |
} AlmanahEvent; |
|
41 |
||
42 |
typedef struct { |
|
43 |
GObjectClass parent; |
|
44 |
||
1.1.2
by Angel Abad
Import upstream version 0.7.1 |
45 |
const gchar *name; |
46 |
const gchar *description; |
|
47 |
const gchar *icon_name; |
|
1.1.1
by Stefan Ebner
Import upstream version 0.6.1 |
48 |
|
49 |
const gchar *(*format_value) (AlmanahEvent *event); |
|
1.3.3
by Angel Abad
Import upstream version 0.9.0 |
50 |
gboolean (*view) (AlmanahEvent *event, GtkWindow *parent_window); |
1.1.1
by Stefan Ebner
Import upstream version 0.6.1 |
51 |
} AlmanahEventClass; |
52 |
||
53 |
GType almanah_event_get_type (void); |
|
54 |
||
55 |
const gchar *almanah_event_format_value (AlmanahEvent *self); |
|
1.3.3
by Angel Abad
Import upstream version 0.9.0 |
56 |
gboolean almanah_event_view (AlmanahEvent *self, GtkWindow *parent_window); |
1.1.1
by Stefan Ebner
Import upstream version 0.6.1 |
57 |
const gchar *almanah_event_get_name (AlmanahEvent *self); |
58 |
const gchar *almanah_event_get_description (AlmanahEvent *self); |
|
59 |
const gchar *almanah_event_get_icon_name (AlmanahEvent *self); |
|
60 |
||
61 |
G_END_DECLS
|
|
62 |
||
63 |
#endif /* !ALMANAH_EVENT_H */ |