diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-03-06 13:28:21 +0000 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-03-06 13:28:21 +0000 |
commit | 3a78f4ca394856de3e7d46bdd7cca0d234b1980f (patch) | |
tree | b6bf157f0a0bd86acd59932a2cd69194a215ded2 /src | |
parent | aac517392fa79bcebf164b6f65ac90566aa98c89 (diff) | |
download | ayatana-ido-3a78f4ca394856de3e7d46bdd7cca0d234b1980f.tar.gz ayatana-ido-3a78f4ca394856de3e7d46bdd7cca0d234b1980f.tar.bz2 ayatana-ido-3a78f4ca394856de3e7d46bdd7cca0d234b1980f.zip |
minor fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/idocalendarmenuitem.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index 0496cc4..346b3d6 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -44,7 +44,10 @@ static void calendar_move_focus_cb (GtkWidget *widg IdoCalendarMenuItem *item); static void calendar_month_changed_cb (GtkWidget *widget, gpointer user_data); - +static void calendar_day_selected_double_click_cb (GtkWidget *widget, + gpointer user_data); +static void calendar_day_selected_cb (GtkWidget *widget, + gpointer user_data); struct _IdoCalendarMenuItemPrivate { GtkWidget *box; @@ -293,17 +296,17 @@ calendar_day_selected_cb (GtkWidget *widget, { IdoCalendarMenuItem *item = (IdoCalendarMenuItem *)user_data; guint day, month, year; - gtk_calendar_get_date (GTK_CALENDAR (menuitem->priv->calendar), &year, &month, &day); + gtk_calendar_get_date (GTK_CALENDAR (widget), &year, &month, &day); g_signal_emit_by_name (item, "day-selected", day, NULL); } static void calendar_day_selected_double_click_cb (GtkWidget *widget, - gpointer user_data) + gpointer user_data) { IdoCalendarMenuItem *item = (IdoCalendarMenuItem *)user_data; guint day, month, year; - gtk_calendar_get_date (GTK_CALENDAR (menuitem->priv->calendar), &year, &month, &day); + gtk_calendar_get_date (GTK_CALENDAR (widget), &year, &month, &day); g_signal_emit_by_name (item, "day-selected-double-click", day, NULL); } @@ -378,7 +381,7 @@ ido_calendar_menu_item_set_date (IdoCalendarMenuItem *menuitem, guint month, guint day) { - g_return_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem)); + g_return_val_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem), FALSE); gtk_calendar_select_month (GTK_CALENDAR (menuitem->priv->calendar), month, year); gtk_calendar_select_day (GTK_CALENDAR (menuitem->priv->calendar), day); return TRUE; |