diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-03-15 14:02:37 +0000 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-03-15 14:02:37 +0000 |
commit | d163ba565ef8c5554fc33131dabc60f071ee5e19 (patch) | |
tree | 94dea35733f7258060eeac0541936c8fd52aeebb /src | |
parent | 3a78f4ca394856de3e7d46bdd7cca0d234b1980f (diff) | |
download | ayatana-ido-d163ba565ef8c5554fc33131dabc60f071ee5e19.tar.gz ayatana-ido-d163ba565ef8c5554fc33131dabc60f071ee5e19.tar.bz2 ayatana-ido-d163ba565ef8c5554fc33131dabc60f071ee5e19.zip |
Bug in closure
Diffstat (limited to 'src')
-rw-r--r-- | src/idocalendarmenuitem.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index 346b3d6..6094d0d 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -90,11 +90,11 @@ ido_calendar_menu_item_class_init (IdoCalendarMenuItemClass *klass) g_signal_new("day-selected", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 1, G_TYPE_UINT); + G_TYPE_NONE, 0); g_signal_new("day-selected-double-click", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 1, G_TYPE_UINT); + G_TYPE_NONE, 0); } static void @@ -295,9 +295,7 @@ calendar_day_selected_cb (GtkWidget *widget, gpointer user_data) { IdoCalendarMenuItem *item = (IdoCalendarMenuItem *)user_data; - guint day, month, year; - gtk_calendar_get_date (GTK_CALENDAR (widget), &year, &month, &day); - g_signal_emit_by_name (item, "day-selected", day, NULL); + g_signal_emit_by_name (item, "day-selected", NULL); } static void @@ -307,7 +305,7 @@ calendar_day_selected_double_click_cb (GtkWidget *widget, IdoCalendarMenuItem *item = (IdoCalendarMenuItem *)user_data; guint day, month, year; gtk_calendar_get_date (GTK_CALENDAR (widget), &year, &month, &day); - g_signal_emit_by_name (item, "day-selected-double-click", day, NULL); + g_signal_emit_by_name (item, "day-selected-double-click", NULL); } /* Public API */ |