summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2011-01-30 14:34:52 +0100
committerJannis Pohlmann <jannis@xfce.org>2011-01-30 14:34:52 +0100
commit857cb8a6f420f0f5cf6cf7fece7301c9351dca09 (patch)
tree9c8d94b5bfaebcdc99146e009993f8f7b1cdecc4
parent171e0d79266b1ad6faedb7e7aee8dffb89b684e5 (diff)
downloadxfdesktop-857cb8a6f420f0f5cf6cf7fece7301c9351dca09.tar.gz
Properly invalidate tooltips on file changes.
-rw-r--r--NEWS1
-rw-r--r--src/xfdesktop-regular-file-icon.c4
-rw-r--r--src/xfdesktop-special-file-icon.c1
3 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b6f919b6..a7c9be30 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ Xfdesktop 4.x.y
* Implement monitoring for special file icons (bug #6986).
* Implement open and empty actions for the trash.
* Fix crash when cancelling a file download (bug #6876).
+ * Properly invalidate tooltips on file changes.
Xfdesktop 4.8.0
diff --git a/src/xfdesktop-regular-file-icon.c b/src/xfdesktop-regular-file-icon.c
index 8f30c2c8..e14256ae 100644
--- a/src/xfdesktop-regular-file-icon.c
+++ b/src/xfdesktop-regular-file-icon.c
@@ -576,6 +576,10 @@ xfdesktop_regular_file_icon_update_file_info(XfdesktopFileIcon *icon,
/* no change, release the new display name */
g_free (new_display_name);
}
+
+ /* invalidate the tooltip */
+ g_free(regular_file_icon->priv->tooltip);
+ regular_file_icon->priv->tooltip = NULL;
/* not really easy to check if this changed or not, so just invalidate it */
xfdesktop_regular_file_icon_invalidate_pixbuf(regular_file_icon);
diff --git a/src/xfdesktop-special-file-icon.c b/src/xfdesktop-special-file-icon.c
index 8f0990c1..1226adfe 100644
--- a/src/xfdesktop-special-file-icon.c
+++ b/src/xfdesktop-special-file-icon.c
@@ -583,6 +583,7 @@ xfdesktop_special_file_icon_changed(GFileMonitor *monitor,
}
/* invalidate the tooltip */
+ g_free(special_file_icon->priv->tooltip);
special_file_icon->priv->tooltip = NULL;
/* update the icon */