aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-04-11 15:15:16 +0100
committerkarl-qdh <karl@qdh.org.uk>2011-04-11 15:15:16 +0100
commitea0c8c5ef4d8c790304d6c4f3c791b3e56244027 (patch)
tree060f43c218848e48f9557a27ec53171f2f5ebf8f /src
parent54a4bf27e26fbdbcd02618250dbabd2b880ca447 (diff)
downloadayatana-indicator-datetime-ea0c8c5ef4d8c790304d6c4f3c791b3e56244027.tar.gz
ayatana-indicator-datetime-ea0c8c5ef4d8c790304d6c4f3c791b3e56244027.tar.bz2
ayatana-indicator-datetime-ea0c8c5ef4d8c790304d6c4f3c791b3e56244027.zip
Fixed niggles
Diffstat (limited to 'src')
-rw-r--r--src/indicator-datetime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index a69e728..b322cc6 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -269,7 +269,7 @@ indicator_datetime_class_init (IndicatorDatetimeClass *klass)
}
static void
-menu_visible_notfy_cb(GtkWidget * menu, gpointer user_data)
+menu_visible_notfy_cb(GtkWidget * menu, G_GNUC_UNUSED GParamSpec *pspec, gpointer user_data)
{
IndicatorDatetime * self = INDICATOR_DATETIME(user_data);
g_debug("notify visible signal recieved");
@@ -289,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 (self->priv->ido_calendar), y, m, d);
+ ido_calendar_menu_item_set_date (self->priv->ido_calendar, y+1900, m, d);
// Make sure the day-selected signal is sent so the menu updates - may duplicate
- GVariant *variant = g_variant_new_uint32((guint)curtime);
+ /*GVariant *variant = g_variant_new_uint32((guint)curtime);
guint timestamp = (guint)time(NULL);
- dbusmenu_menuitem_handle_event(DBUSMENU_MENUITEM(self->priv->ido_calendar), "day-selected", variant, timestamp);
+ dbusmenu_menuitem_handle_event(DBUSMENU_MENUITEM(self->priv->ido_calendar), "day-selected", variant, timestamp);*/
}
static void