summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThaddaeus Tintenfisch <thad.fisch@gmail.com>2015-04-01 12:27:01 +0200
committerEric Koegel <eric.koegel@gmail.com>2015-05-17 12:15:11 +0300
commit63f4b510d68f64cffadd018831689bb8d736c90e (patch)
treec7d3a4a920579a131c002778912739316758bf30
parent7c22f6d80150efc11bcbddf6bec7ce4a652d8bdc (diff)
downloadxfdesktop-63f4b510d68f64cffadd018831689bb8d736c90e.tar.gz
Hide empty comment line in icon tooltip
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
-rw-r--r--src/xfdesktop-regular-file-icon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfdesktop-regular-file-icon.c b/src/xfdesktop-regular-file-icon.c
index e2fd49ba..029b2ffa 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,