aboutsummaryrefslogtreecommitdiff
path: root/src/idocalendarmenuitem.c
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-06 13:05:52 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-03-06 13:05:52 +0000
commitaac517392fa79bcebf164b6f65ac90566aa98c89 (patch)
treeb93395a6e2687133f15b131b96cabba48ec34b3a /src/idocalendarmenuitem.c
parent368393bf30ff81a02a800441ddef5640c4b0d207 (diff)
parenta38ef76289761495301c80b2473cbf3089b6a8e6 (diff)
downloadayatana-ido-aac517392fa79bcebf164b6f65ac90566aa98c89.tar.gz
ayatana-ido-aac517392fa79bcebf164b6f65ac90566aa98c89.tar.bz2
ayatana-ido-aac517392fa79bcebf164b6f65ac90566aa98c89.zip
Merge with trunk
Diffstat (limited to 'src/idocalendarmenuitem.c')
-rw-r--r--src/idocalendarmenuitem.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c
index d49aacf..0496cc4 100644
--- a/src/idocalendarmenuitem.c
+++ b/src/idocalendarmenuitem.c
@@ -314,6 +314,14 @@ ido_calendar_menu_item_new (void)
return g_object_new (IDO_TYPE_CALENDAR_MENU_ITEM, NULL);
}
+GtkWidget *
+ido_calendar_menu_item_get_calendar (IdoCalendarMenuItem *item)
+{
+ g_return_val_if_fail (IDO_IS_CALENDAR_MENU_ITEM (item), NULL);
+
+ return item->priv->calendar;
+}
+
gboolean
ido_calendar_menu_item_mark_day (IdoCalendarMenuItem *menuitem, guint day)
{
@@ -349,8 +357,7 @@ ido_calendar_menu_item_set_display_options (IdoCalendarMenuItem *menuitem, GtkCa
GtkCalendarDisplayOptions
ido_calendar_menu_item_get_display_options (IdoCalendarMenuItem *menuitem)
{
-
- g_return_val_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem), NULL);
+ g_return_val_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem), 0);
return gtk_calendar_get_display_options (GTK_CALENDAR (menuitem->priv->calendar));
}