From 1b860bf5516f760774881bbb9dec90cea75109f8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 4 Sep 2009 16:14:21 -0500 Subject: We're tracking count instead of whether we should show the time as a boolean. --- src/im-menu-item.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/im-menu-item.c b/src/im-menu-item.c index 5d397a5..193b1a4 100644 --- a/src/im-menu-item.c +++ b/src/im-menu-item.c @@ -47,7 +47,7 @@ struct _ImMenuItemPrivate IndicateListenerIndicator * indicator; glong seconds; - gboolean show_time; + gchar * count; gulong indicator_changed; guint time_update_min; @@ -166,8 +166,7 @@ update_time (ImMenuItem * self) { ImMenuItemPrivate * priv = IM_MENU_ITEM_GET_PRIVATE(self); - if (!priv->show_time) { - dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), INDICATOR_MENUITEM_PROP_RIGHT, ""); + if (priv->count != NULL) { return; } @@ -349,7 +348,7 @@ im_menu_item_new (IndicateListener * listener, IndicateListenerServer * server, priv->listener = listener; priv->server = server; priv->indicator = indicator; - priv->show_time = TRUE; + priv->count = NULL; priv->time_update_min = 0; dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), "type", INDICATOR_MENUITEM_TYPE); -- cgit v1.2.3