diff options
author | David Barth <david.barth@canonical.com> | 2011-03-16 11:19:55 +0100 |
---|---|---|
committer | David Barth <david.barth@canonical.com> | 2011-03-16 11:19:55 +0100 |
commit | add9d7132e6f419c55ff554b5105804cd1fb3947 (patch) | |
tree | 94dea35733f7258060eeac0541936c8fd52aeebb | |
parent | 9b651a1251a134e2c5ea38d954fdac22d7ade0ac (diff) | |
parent | d163ba565ef8c5554fc33131dabc60f071ee5e19 (diff) | |
download | ayatana-ido-add9d7132e6f419c55ff554b5105804cd1fb3947.tar.gz ayatana-ido-add9d7132e6f419c55ff554b5105804cd1fb3947.tar.bz2 ayatana-ido-add9d7132e6f419c55ff554b5105804cd1fb3947.zip |
add signals for select/activate and a set date function - merge of karl-qdh branch
-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 */ |