]> git.0d.be Git - empathy.git/blob - tp-account-widgets/tpaw-calendar-button.h
Use the telepathy-account-widgets submodule instead of the internal copy
[empathy.git] / tp-account-widgets / tpaw-calendar-button.h
1 /*
2  * tpaw-calendar-button.h - Header for TpawCalendarButton
3  * Copyright (C) 2012 Collabora Ltd.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19
20 #ifndef __TPAW_CALENDAR_BUTTON_H__
21 #define __TPAW_CALENDAR_BUTTON_H__
22
23 #include <gtk/gtk.h>
24
25 G_BEGIN_DECLS
26
27 typedef struct _TpawCalendarButton TpawCalendarButton;
28 typedef struct _TpawCalendarButtonClass TpawCalendarButtonClass;
29 typedef struct _TpawCalendarButtonPriv TpawCalendarButtonPriv;
30
31 struct _TpawCalendarButtonClass {
32     GtkBoxClass parent_class;
33 };
34
35 struct _TpawCalendarButton {
36     GtkBox parent;
37     TpawCalendarButtonPriv *priv;
38 };
39
40 GType tpaw_calendar_button_get_type (void);
41
42 #define TPAW_TYPE_CALENDAR_BUTTON \
43   (tpaw_calendar_button_get_type ())
44 #define TPAW_CALENDAR_BUTTON(obj) \
45   (G_TYPE_CHECK_INSTANCE_CAST((obj), TPAW_TYPE_CALENDAR_BUTTON, \
46     TpawCalendarButton))
47 #define TPAW_CALENDAR_BUTTON_CLASS(klass) \
48   (G_TYPE_CHECK_CLASS_CAST((klass), TPAW_TYPE_CALENDAR_BUTTON, \
49   TpawCalendarButtonClass))
50 #define TPAW_IS_CALENDAR_BUTTON(obj) \
51   (G_TYPE_CHECK_INSTANCE_TYPE((obj), TPAW_TYPE_CALENDAR_BUTTON))
52 #define TPAW_IS_CALENDAR_BUTTON_CLASS(klass) \
53   (G_TYPE_CHECK_CLASS_TYPE((klass), TPAW_TYPE_CALENDAR_BUTTON))
54 #define TPAW_CALENDAR_BUTTON_GET_CLASS(obj) \
55   (G_TYPE_INSTANCE_GET_CLASS ((obj), TPAW_TYPE_CALENDAR_BUTTON, \
56   TpawCalendarButtonClass))
57
58 GtkWidget * tpaw_calendar_button_new (void);
59
60 GDate * tpaw_calendar_button_get_date (TpawCalendarButton *self);
61
62 void tpaw_calendar_button_set_date (TpawCalendarButton *self,
63     GDate *date);
64
65 G_END_DECLS
66
67 #endif /* #ifndef __TPAW_CALENDAR_BUTTON_H__*/