[Xfce4-commits] <thunar:master> Fix QueryTrash and TrashChanged D-Bus signals based on the item count.
Jannis Pohlmann
noreply at xfce.org
Sat Sep 26 18:58:01 CEST 2009
Updating branch refs/heads/master
to af1ad121adfd30ef35b295fd664101868d43499e (commit)
from 6fa50baf0efe7115bf238e034994f45a9b1cf420 (commit)
commit af1ad121adfd30ef35b295fd664101868d43499e
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Sat Sep 26 18:54:54 2009 +0200
Fix QueryTrash and TrashChanged D-Bus signals based on the item count.
thunar/thunar-dbus-service.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/thunar/thunar-dbus-service.c b/thunar/thunar-dbus-service.c
index 4e164f2..987c8e6 100644
--- a/thunar/thunar-dbus-service.c
+++ b/thunar/thunar-dbus-service.c
@@ -287,7 +287,8 @@ thunar_dbus_service_trash_bin_changed (ThunarDBusService *dbus_service,
_thunar_return_if_fail (THUNAR_IS_FILE (trash_bin));
/* emit the "trash-changed" signal with the new state */
- g_signal_emit_by_name (G_OBJECT (dbus_service), "trash-changed", (thunar_file_get_size (trash_bin) > 0));
+ g_signal_emit_by_name (G_OBJECT (dbus_service), "trash-changed",
+ thunar_file_get_item_count (trash_bin) > 0);
}
@@ -627,7 +628,7 @@ thunar_dbus_service_query_trash (ThunarDBusService *dbus_service,
if (thunar_dbus_service_connect_trash_bin (dbus_service, error))
{
/* check whether the trash bin is not empty */
- *full = (thunar_file_get_size (dbus_service->trash_bin) > 0);
+ *full = (thunar_file_get_item_count (dbus_service->trash_bin) > 0);
return TRUE;
}
More information about the Xfce4-commits
mailing list