[Xfce4-commits] [xfce/xfdesktop] 17/35: Hide empty comment line in icon tooltip

noreply at xfce.org noreply at xfce.org
Sun May 17 11:38:05 CEST 2015


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

eric pushed a commit to branch xfce-4.12
in repository xfce/xfdesktop.

commit 63f4b510d68f64cffadd018831689bb8d736c90e
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Wed Apr 1 12:27:01 2015 +0200

    Hide empty comment line in icon tooltip
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfdesktop-regular-file-icon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfdesktop-regular-file-icon.c b/src/xfdesktop-regular-file-icon.c
index e2fd49b..029b2ff 100644
--- a/src/xfdesktop-regular-file-icon.c
+++ b/src/xfdesktop-regular-file-icon.c
@@ -798,7 +798,7 @@ xfdesktop_regular_file_icon_peek_tooltip(XfdesktopIcon *icon)
                 comment = xfce_rc_read_entry(rcfile, "Comment", NULL);
             }
             /* Prepend the comment to the tooltip */
-            if(comment != NULL) {
+            if(comment != NULL && *comment != '\0') {
                 gchar *tooltip = regular_file_icon->priv->tooltip;
                 regular_file_icon->priv->tooltip = g_strdup_printf("%s\n%s",
                                                                    comment,

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


More information about the Xfce4-commits mailing list