aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-02-25 15:09:27 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-02-25 15:09:27 +0000
commit03eafa311a71cacae4ecca3f198ea7131f33dbb7 (patch)
treed8d5b45a9b709eee13c999bb4e4092dff46769b8 /src/indicator-datetime.c
parent398154d354d19a85f629a6d7131b1a7bd6b7b869 (diff)
downloadayatana-indicator-datetime-03eafa311a71cacae4ecca3f198ea7131f33dbb7.tar.gz
ayatana-indicator-datetime-03eafa311a71cacae4ecca3f198ea7131f33dbb7.tar.bz2
ayatana-indicator-datetime-03eafa311a71cacae4ecca3f198ea7131f33dbb7.zip
Get ido calendar and dbusmenu the right way around
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r--src/indicator-datetime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index e793d71..ac8db54 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -1357,11 +1357,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);
}
@@ -1388,7 +1389,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;
}