1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 #HildonCalendarPopup is a dialog which contains a GtkCalendar.
7 <!-- ##### SECTION Long_Description ##### -->
9 #HildonCalendarPopup is a dialog which contains a GtkCalendar.
10 It also contains arrow buttons for changing month/year. The
11 earliest possible date is 1/1/1980 and the latest date 31/12/2100.
12 If navigating with keyboard to a date that is not in the current
13 month the calendar moves to the corresponding month. If the new
14 date would be unallowed then an information banner will be shown.
16 The usage of CalendarPopup is shown in the following code. This function
17 should be connect to eg. button-press-event.
22 GtkWidget *parent, *popup;
25 into &y, &m, &d... */
27 gtk_widget_get_ancestor(GTK_WIDGET(data), GTK_TYPE_WINDOW);
28 popup = hildon_calendar_popup_new(GTK_WINDOW (parent), y, m, d);
30 result = gtk_dialog_run(GTK_DIALOG(popup));
34 case GTK_RESPONSE_ACCEPT:
36 hildon_calendar_popup_get_date(HILDON_CALENDAR_POPUP(popup), &y, &m, &d);
38 /* here set the new date*/
40 gtk_widget_destroy(popup);
46 <!-- ##### SECTION See_Also ##### -->
51 <!-- ##### MACRO HILDON_CALENDAR_POPUP_TYPE ##### -->
58 <!-- ##### FUNCTION hildon_calendar_popup_new ##### -->
70 <!-- ##### FUNCTION hildon_calendar_popup_set_date ##### -->
81 <!-- ##### FUNCTION hildon_calendar_popup_get_date ##### -->
92 <!-- ##### ARG HildonCalendarPopup:day ##### -->
97 <!-- ##### ARG HildonCalendarPopup:max-year ##### -->
102 <!-- ##### ARG HildonCalendarPopup:min-year ##### -->
107 <!-- ##### ARG HildonCalendarPopup:month ##### -->
112 <!-- ##### ARG HildonCalendarPopup:year ##### -->