From 7acd91df1e487037bbf5533d4086a74219ca204f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 29 Sep 2009 16:46:18 -0500 Subject: Making sure we don't update the text for the time if it's zero. --- src/im-menu-item.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/im-menu-item.c b/src/im-menu-item.c index 4357dee..35bb3be 100644 --- a/src/im-menu-item.c +++ b/src/im-menu-item.c @@ -187,9 +187,17 @@ update_time (ImMenuItem * self) { ImMenuItemPrivate * priv = IM_MENU_ITEM_GET_PRIVATE(self); + /* Count has been set, so it takes priority. */ if (priv->count != NULL) { return; } + + /* Seconds hasn't been set, so we just want to keep the time + area blank. */ + if (priv->seconds == 0) { + dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), INDICATOR_MENUITEM_PROP_RIGHT, ""); + return; + } gchar * timestring = NULL; -- cgit v1.2.3