[Xfce4-commits] [xfce/thunar] 02/02: fixed bug - no bool argument available for dbus signal "TrashChanged"

noreply at xfce.org noreply at xfce.org
Sun Jan 21 19:32:58 CET 2018


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

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit ca151b1acd75806fff74d7dc67c2fa40565f15c4
Author: Alexander Schwinn <acs82 at gmx.de>
Date:   Sat Jan 20 11:22:04 2018 +0100

    fixed bug - no bool argument available for dbus signal "TrashChanged"
---
 plugins/thunar-tpa/thunar-tpa-bindings.xml | 6 ++----
 plugins/thunar-tpa/thunar-tpa.c            | 8 +++-----
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/plugins/thunar-tpa/thunar-tpa-bindings.xml b/plugins/thunar-tpa/thunar-tpa-bindings.xml
index 5430fd8..0a176f9 100644
--- a/plugins/thunar-tpa/thunar-tpa-bindings.xml
+++ b/plugins/thunar-tpa/thunar-tpa-bindings.xml
@@ -92,14 +92,12 @@
     </method>
 
     <!--
-      TrashChanged (full : BOOLEAN)
-
-      full : TRUE if the trash now contains atleast one item.
+      TrashChanged ()
 
       This signal is emitted by the file manager whenever the state
       of the trash bin changes.
     -->
-    <signal name="TrashChanged" />
+    <signal name="TrashChanged"/>
   </interface>
 </node>
 
diff --git a/plugins/thunar-tpa/thunar-tpa.c b/plugins/thunar-tpa/thunar-tpa.c
index 81e518c..73a53eb 100644
--- a/plugins/thunar-tpa/thunar-tpa.c
+++ b/plugins/thunar-tpa/thunar-tpa.c
@@ -86,7 +86,6 @@ static gboolean thunar_tpa_leave_notify_event  (GtkWidget           *button,
                                                 GdkEventCrossing    *event,
                                                 ThunarTpa           *plugin);
 static void     thunar_tpa_on_trash_changed    (thunarTPATrash      *proxy,
-                                                gboolean             full,
                                                 gpointer             user_data);
 static void     thunar_tpa_display_trash       (ThunarTpa           *plugin);
 static void     thunar_tpa_empty_trash         (ThunarTpa           *plugin);
@@ -463,16 +462,15 @@ thunar_tpa_leave_notify_event (GtkWidget        *button,
 
 static void
 thunar_tpa_on_trash_changed (thunarTPATrash *proxy,
-                                   gboolean  full,
-                                   gpointer  user_data)
+                             gpointer        user_data)
 {
   ThunarTpa *plugin = THUNAR_TPA (user_data);
 
   g_return_if_fail (THUNAR_IS_TPA (plugin));
   g_return_if_fail (plugin->proxy == proxy);
 
-  /* change the status plugin/tooltip appropriately */
-  thunar_tpa_state (plugin, full);
+  /* update the state of the trash plugin */
+  thunar_tpa_query_trash (plugin);
 }
 
 

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


More information about the Xfce4-commits mailing list