50
by Cody Russell
Calendar |
1 |
/*
|
2 |
* Copyright 2010 Canonical, Ltd.
|
|
3 |
*
|
|
4 |
* This program is free software: you can redistribute it and/or modify it
|
|
5 |
* under the terms of either or both of the following licenses:
|
|
6 |
*
|
|
7 |
* 1) the GNU Lesser General Public License version 3, as published by the
|
|
8 |
* Free Software Foundation; and/or
|
|
9 |
* 2) the GNU Lesser General Public License version 2.1, as published by
|
|
10 |
* the Free Software Foundation.
|
|
11 |
*
|
|
12 |
* This program is distributed in the hope that it will be useful, but
|
|
13 |
* WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
14 |
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
|
|
15 |
* PURPOSE. See the applicable version of the GNU Lesser General Public
|
|
16 |
* License for more details.
|
|
17 |
*
|
|
18 |
* You should have received a copy of both the GNU Lesser General Public
|
|
19 |
* License version 3 and version 2.1 along with this program. If not, see
|
|
20 |
* <http://www.gnu.org/licenses/>
|
|
21 |
*
|
|
22 |
* Authors:
|
|
23 |
* Cody Russell <crussell@canonical.com>
|
|
24 |
*/
|
|
25 |
||
26 |
#ifndef __IDO_CALENDAR_MENU_ITEM_H__
|
|
27 |
#define __IDO_CALENDAR_MENU_ITEM_H__
|
|
28 |
||
29 |
#include <gtk/gtk.h> |
|
30 |
||
31 |
G_BEGIN_DECLS
|
|
32 |
||
33 |
#define IDO_TYPE_CALENDAR_MENU_ITEM (ido_calendar_menu_item_get_type ())
|
|
34 |
#define IDO_CALENDAR_MENU_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), IDO_TYPE_CALENDAR_MENU_ITEM, IdoCalendarMenuItem))
|
|
35 |
#define IDO_CALENDAR_MENU_ITEM_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), IDO_TYPE_CALENDAR_MENU_ITEM, IdoCalendarMenuItemClass))
|
|
36 |
#define IDO_IS_CALENDAR_MENU_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), IDO_TYPE_CALENDAR_MENU_ITEM))
|
|
37 |
#define IDO_IS_CALENDAR_MENU_ITEM_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), IDO_TYPE_CALENDAR_MENU_ITEM))
|
|
38 |
#define IDO_CALENDAR_MENU_ITEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), IDO_TYPE_CALENDAR_MENU_ITEM, IdoCalendarMenuItemClass))
|
|
39 |
||
40 |
typedef struct _IdoCalendarMenuItem IdoCalendarMenuItem; |
|
41 |
typedef struct _IdoCalendarMenuItemClass IdoCalendarMenuItemClass; |
|
42 |
typedef struct _IdoCalendarMenuItemPrivate IdoCalendarMenuItemPrivate; |
|
43 |
||
44 |
struct _IdoCalendarMenuItem |
|
45 |
{
|
|
46 |
GtkMenuItem parent_instance; |
|
47 |
||
48 |
IdoCalendarMenuItemPrivate *priv; |
|
49 |
};
|
|
50 |
||
51 |
struct _IdoCalendarMenuItemClass |
|
52 |
{
|
|
53 |
GtkMenuItemClass parent_class; |
|
54 |
};
|
|
55 |
||
69.1.1
by karl-qdh
Added additional API for marking days and setting options |
56 |
GType ido_calendar_menu_item_get_type (void) G_GNUC_CONST; |
50
by Cody Russell
Calendar |
57 |
|
69.1.1
by karl-qdh
Added additional API for marking days and setting options |
58 |
GtkWidget *ido_calendar_menu_item_new (void); |
72.1.1
by Ken VanDine
Added ido_calendar_menu_item_get_calendar back to prevent a ABI break |
59 |
GtkWidget *ido_calendar_menu_item_get_calendar (IdoCalendarMenuItem *menuitem); |
72
by Cody Russell
Fixed missing semicolon. Also the code formatting was all messed up so I fixed that because I'm kind of a code formatting nazi. Sie müssen Antretenbzr diff |
60 |
gboolean ido_calendar_menu_item_mark_day (IdoCalendarMenuItem *menuitem, guint day); |
69.1.1
by karl-qdh
Added additional API for marking days and setting options |
61 |
gboolean ido_calendar_menu_item_unmark_day (IdoCalendarMenuItem *menuitem, guint day); |
62 |
void ido_calendar_menu_item_clear_marks (IdoCalendarMenuItem *menuitem); |
|
63 |
void ido_calendar_menu_item_set_display_options (IdoCalendarMenuItem *menuitem, GtkCalendarDisplayOptions flags); |
|
69.1.7
by karl-qdh
Added missing getter for calendar display options |
64 |
GtkCalendarDisplayOptions ido_calendar_menu_item_get_display_options (IdoCalendarMenuItem *menuitem); |
72
by Cody Russell
Fixed missing semicolon. Also the code formatting was all messed up so I fixed that because I'm kind of a code formatting nazi. Sie müssen Antretenbzr diff |
65 |
void ido_calendar_menu_item_get_date (IdoCalendarMenuItem *menuitem, |
66 |
guint *year, |
|
67 |
guint *month, |
|
68 |
guint *day); |
|
69.2.1
by karl-qdh
Added new API to the calendar menu item so we can change the selected day/date. |
69 |
gboolean ido_calendar_menu_item_set_date (IdoCalendarMenuItem *menuitem, |
70 |
guint year, |
|
71 |
guint month, |
|
72 |
guint day); |
|
50
by Cody Russell
Calendar |
73 |
G_END_DECLS
|
74 |
||
75 |
#endif /* __IDO_CALENDAR_MENU_ITEM_H__ */ |