aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-04 16:14:21 -0500
committerTed Gould <ted@canonical.com>2009-09-04 16:14:21 -0500
commit1b860bf5516f760774881bbb9dec90cea75109f8 (patch)
tree8097e99c52b65f887225554b0afad8c5e691ab42
parent5c2ee1f5f3604fa095f2e8c401fd71d02650067a (diff)
downloadayatana-indicator-messages-1b860bf5516f760774881bbb9dec90cea75109f8.tar.gz
ayatana-indicator-messages-1b860bf5516f760774881bbb9dec90cea75109f8.tar.bz2
ayatana-indicator-messages-1b860bf5516f760774881bbb9dec90cea75109f8.zip
We're tracking count instead of whether we should show the time as a boolean.
-rw-r--r--src/im-menu-item.c7
1 files changed, 3 insertions, 4 deletions
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);