diff options
author | Michael Terry <mike@mterry.name> | 2011-02-25 13:36:03 -0500 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-02-25 13:36:03 -0500 |
commit | 938ba5dcc001f0f68e4c147fdf64817a2b9e91b0 (patch) | |
tree | 861f021b29a5d86e4f3cbda25ee8205d0cdeee45 /src/indicator-datetime.c | |
parent | 6d8cd56957cbd5123748085448b1b340bf8c4d1c (diff) | |
parent | d0e5a69a026bc879759cde57f8ba324c67b6b37a (diff) | |
download | ayatana-indicator-datetime-938ba5dcc001f0f68e4c147fdf64817a2b9e91b0.tar.gz ayatana-indicator-datetime-938ba5dcc001f0f68e4c147fdf64817a2b9e91b0.tar.bz2 ayatana-indicator-datetime-938ba5dcc001f0f68e4c147fdf64817a2b9e91b0.zip |
add in some fixes from karl's branch
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r-- | src/indicator-datetime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index 54e029e..2099929 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -1186,11 +1186,12 @@ month_changed_cb (IdoCalendarMenuItem *ido, { gchar datestring[20]; guint d,m,y; + DbusmenuMenuitem * item = DBUSMENU_MENUITEM (user_data); ido_calendar_menu_item_get_date(ido, &y, &m, &d); g_sprintf(datestring, "%d-%d-%d", y, m, d); GVariant *variant = g_variant_new_string(datestring); guint timestamp = (guint)time(NULL); - dbusmenu_menuitem_handle_event(DBUSMENU_MENUITEM(ido), "event::month-changed", variant, timestamp); + dbusmenu_menuitem_handle_event(DBUSMENU_MENUITEM(item), "event::month-changed", variant, timestamp); g_debug("Got month changed signal: %s", datestring); } @@ -1217,7 +1218,7 @@ new_calendar_item (DbusmenuMenuitem * newitem, self->priv->ido_calendar = ido; dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, GTK_MENU_ITEM(ido), parent); - g_signal_connect(ido, "month-changed", G_CALLBACK(month_changed_cb), NULL); + g_signal_connect_after(ido, "month-changed", G_CALLBACK(month_changed_cb), (gpointer)newitem); return TRUE; } |