[Xfce4-commits] [apps/xfce4-notifyd] 29/29: Improve timestamp matching

noreply at xfce.org noreply at xfce.org
Sun Jan 29 20:52:19 CET 2017


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

ochosi pushed a commit to branch master
in repository apps/xfce4-notifyd.

commit e542ac4373a9e57b1466013ac9783c4442a245ad
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Jan 29 20:47:42 2017 +0100

    Improve timestamp matching
    
    With g_str_match_string the timestamp is tokenized and then compared,
    so there were false positives.
---
 xfce4-notifyd-config/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 748d502..998d216 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -523,7 +523,7 @@ xfce4_notifyd_log_populate (GtkWidget *log_listbox)
                     }
                 }
 
-                if (g_str_match_string (timestamp, group, FALSE) == TRUE && yesterday == FALSE) {
+                if (g_ascii_strncasecmp (timestamp, group, 10) == 0 && yesterday == FALSE) {
                     GtkWidget *header;
                     header = gtk_label_new ("Yesterday and before");
                     gtk_widget_set_sensitive (header, FALSE);

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


More information about the Xfce4-commits mailing list