diff options
-rw-r--r-- | src/im-menu-item.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |