aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-04-11 14:56:07 +0100
committerkarl-qdh <karl@qdh.org.uk>2011-04-11 14:56:07 +0100
commit54a4bf27e26fbdbcd02618250dbabd2b880ca447 (patch)
tree6dda3b0c832f60ba88ecf1472e5d302f6cfdade4
parent22a5e34ec75727861c77488aa62d606d64c95271 (diff)
downloadayatana-indicator-datetime-54a4bf27e26fbdbcd02618250dbabd2b880ca447.tar.gz
ayatana-indicator-datetime-54a4bf27e26fbdbcd02618250dbabd2b880ca447.tar.bz2
ayatana-indicator-datetime-54a4bf27e26fbdbcd02618250dbabd2b880ca447.zip
syntax fail
-rw-r--r--src/indicator-datetime.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index a6d7ef2..a69e728 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -280,7 +280,6 @@ menu_visible_notfy_cb(GtkWidget * menu, gpointer user_data)
if (visible) return;
g_debug("notify visible menu hidden, resetting date");
- int y,m,d;
time_t curtime;
time(&curtime);
@@ -290,12 +289,12 @@ menu_visible_notfy_cb(GtkWidget * menu, gpointer user_data)
int d = today->tm_mday;
// Set the calendar to todays date
- ido_calendar_menu_item_set_date (IDO_CALENDAR_MENU_ITEM (mi_data), y, m, d);
+ ido_calendar_menu_item_set_date (IDO_CALENDAR_MENU_ITEM (self->priv->ido_calendar), y, m, d);
// Make sure the day-selected signal is sent so the menu updates - may duplicate
GVariant *variant = g_variant_new_uint32((guint)curtime);
guint timestamp = (guint)time(NULL);
- dbusmenu_menuitem_handle_event(DBUSMENU_MENUITEM(item), "day-selected", variant, timestamp);
+ dbusmenu_menuitem_handle_event(DBUSMENU_MENUITEM(self->priv->ido_calendar), "day-selected", variant, timestamp);
}
static void
@@ -1443,11 +1442,6 @@ new_calendar_item (DbusmenuMenuitem * newitem,
calendar_prop_change_cb(newitem, CALENDAR_MENUITEM_PROP_MARKS, propval, ido);
}
- propval = dbusmenu_menuitem_property_get_variant(newitem, CALENDAR_MENUITEM_PROP_SET_DATE);
- if (propval != NULL) {
- calendar_prop_change_cb(newitem, CALENDAR_MENUITEM_PROP_SET_DATE, propval, ido);
- }
-
return TRUE;
}