[Xfce4-commits] [xfce/xfdesktop] 04/19: Fix for trash always showing empty on system startup (Bug 9006)
noreply at xfce.org
noreply at xfce.org
Sun Nov 9 15:36:46 CET 2014
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch xfce-4.10
in repository xfce/xfdesktop.
commit 3451401bf000d6b7aceca9ee52037bda4e391c7d
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Mon Sep 9 09:03:34 2013 +0300
Fix for trash always showing empty on system startup (Bug 9006)
When the system starts up querying G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT
always returns 0 items. Since xfdesktop does its own counting of
valid items in the trash:/// skipping this check fixes this bug.
---
src/xfdesktop-special-file-icon.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/xfdesktop-special-file-icon.c b/src/xfdesktop-special-file-icon.c
index 955263c..345af73 100644
--- a/src/xfdesktop-special-file-icon.c
+++ b/src/xfdesktop-special-file-icon.c
@@ -626,13 +626,6 @@ xfdesktop_special_file_icon_update_trash_count(XfdesktopSpecialFileIcon *special
return;
}
- special_file_icon->priv->trash_item_count = g_file_info_get_attribute_uint32(
- special_file_icon->priv->file_info,
- G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT);
-
- if(special_file_icon->priv->trash_item_count == 0)
- return;
-
/* The trash count may return a number of files the user can't
* currently delete, for example if the file is in a removable
* drive that isn't mounted.
@@ -657,6 +650,7 @@ xfdesktop_special_file_icon_update_trash_count(XfdesktopSpecialFileIcon *special
g_object_unref(enumerator);
special_file_icon->priv->trash_item_count = n;
+ TRACE("exiting, trash count %d", n);
}
/* public API */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list