[Xfce4-commits] [apps/xfce4-notifyd] 01/01: panel-plugin: Fix first log entry not being shown (Bug #14920)

noreply at xfce.org noreply at xfce.org
Thu Dec 6 22:32:07 CET 2018


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-notifyd.

commit e73b8c950fbdd2cabe08128f155ed51b7fe2d06c
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Dec 6 22:30:38 2018 +0100

    panel-plugin: Fix first log entry not being shown (Bug #14920)
---
 panel-plugin/notification-plugin-log.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/notification-plugin-log.c b/panel-plugin/notification-plugin-log.c
index 8cd606a..cc1fa4f 100644
--- a/panel-plugin/notification-plugin-log.c
+++ b/panel-plugin/notification-plugin-log.c
@@ -171,12 +171,12 @@ notification_plugin_menu_populate (NotificationPlugin *notification_plugin)
       log_display_limit = DEFAULT_LOG_DISPLAY_LIMIT;
     log_length = numberof_groups - log_display_limit;
     if (log_length < 0)
-      log_length = 0;
+      log_length = -1;
 
     /* Check if the menu is going to be empty despite there being a log file, e.g.
        when showing only the notifications of today but the log only contains entries
        from yesterday and before. In this case show the placeholder. */
-    if (numberof_groups == 0)
+    if (numberof_groups == -1)
       no_notifications = TRUE;
 
     /* Notifications are only shown until LOG_DISPLAY_LIMIT is hit */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list