diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-03-25 16:09:17 +0000 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-03-25 16:09:17 +0000 |
commit | 37128f74bece1fea1d16503593546ce936568ae1 (patch) | |
tree | 29232a614eece02b1090294a68758558c47d6684 | |
parent | 107888ae9b7ceb1d852a96d2a61ad566e1360ab3 (diff) | |
download | ayatana-indicator-datetime-37128f74bece1fea1d16503593546ce936568ae1.tar.gz ayatana-indicator-datetime-37128f74bece1fea1d16503593546ce936568ae1.tar.bz2 ayatana-indicator-datetime-37128f74bece1fea1d16503593546ce936568ae1.zip |
Try splitting the function see if that works
-rw-r--r-- | src/indicator-datetime.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index 7b1164d..b47f1af 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -1144,10 +1144,17 @@ indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GVariant *value, timezone_update_labels(mi_data); } else if (!g_strcmp0(prop, TIMEZONE_MENUITEM_PROP_RADIO)) { gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(mi_data->gmi), g_variant_get_boolean(value)); - - // Properties for marking and unmarking the calendar - - } else if (!g_strcmp0(prop, CALENDAR_MENUITEM_PROP_MARK)) { + } else { + g_warning("Indicator Item property '%s' unknown", prop); + } + return; +} +// Properties for marking and unmarking the calendar +static void +calendar_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GVariant *value, IdoCalendarMenuItem * mi_data) +{ + g_debug("Changing calendar property"); + if (!g_strcmp0(prop, CALENDAR_MENUITEM_PROP_MARK)) { ido_calendar_menu_item_mark_day (IDO_CALENDAR_MENU_ITEM (mi_data), g_variant_get_int16(value)); g_debug("Marked day: %d", g_variant_get_int16(value)); } else if (!g_strcmp0(prop, CALENDAR_MENUITEM_PROP_UNMARK)) { @@ -1332,7 +1339,7 @@ new_calendar_item (DbusmenuMenuitem * newitem, g_signal_connect_after(ido, "day-selected", G_CALLBACK(day_selected_cb), (gpointer)newitem); g_signal_connect_after(ido, "day-selected-double-click", G_CALLBACK(day_selected_double_click_cb), (gpointer)newitem); - g_signal_connect(G_OBJECT(newitem), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(indicator_prop_change_cb), ido); + g_signal_connect(G_OBJECT(newitem), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(calendar_prop_change_cb), ido); return TRUE; } |