[Xfce4-commits] [xfce/thunar] 03/03: Really fix trash state at startup (bug #9513 and #11913)

noreply at xfce.org noreply at xfce.org
Thu May 21 16:05:14 CEST 2015


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

hjudt pushed a commit to branch master
in repository xfce/thunar.

commit 6010f71d865b624f5f58b81405764c4ce6b2afc4
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon May 18 21:37:01 2015 +0200

    Really fix trash state at startup (bug #9513 and #11913)
---
 thunar/thunar-dbus-service.c |    1 +
 thunar/thunar-trash-action.c |    3 +++
 2 files changed, 4 insertions(+)

diff --git a/thunar/thunar-dbus-service.c b/thunar/thunar-dbus-service.c
index 56d0bf2..baf0bb7 100644
--- a/thunar/thunar-dbus-service.c
+++ b/thunar/thunar-dbus-service.c
@@ -357,6 +357,7 @@ thunar_dbus_service_connect_trash_bin (ThunarDBusService *dbus_service,
           g_signal_connect_swapped (G_OBJECT (dbus_service->trash_bin), "changed",
                                     G_CALLBACK (thunar_dbus_service_trash_bin_changed),
                                     dbus_service);
+          thunar_file_reload_idle (dbus_service->trash_bin);
         }
       g_object_unref (trash_bin_path);
     }
diff --git a/thunar/thunar-trash-action.c b/thunar/thunar-trash-action.c
index 9978ada..86f7652 100644
--- a/thunar/thunar-trash-action.c
+++ b/thunar/thunar-trash-action.c
@@ -88,6 +88,9 @@ thunar_trash_action_init (ThunarTrashAction *trash_action)
 
       /* initially update the stock icon */
       thunar_trash_action_changed (trash_action, trash_action->trash_bin);
+
+      /* schedule a reload in idle (fix for bug #9513) */
+      thunar_file_reload_idle (trash_action->trash_bin);
     }
 }
 

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


More information about the Xfce4-commits mailing list