summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlexander Schwinn <acs82@gmx.de>2018-01-20 11:22:04 +0100
committerAlexander Schwinn <acs82@gmx.de>2018-01-21 19:32:07 +0100
commitca151b1acd75806fff74d7dc67c2fa40565f15c4 (patch)
treeeab9aa9a49c2bf7902f2fbc9688ffd61b72904ef /plugins
parent9933b967fcf735824be77e26ec8deca80e90955f (diff)
downloadthunar-ca151b1acd75806fff74d7dc67c2fa40565f15c4.tar.gz
fixed bug - no bool argument available for dbus signal "TrashChanged"
Diffstat (limited to 'plugins')
-rw-r--r--plugins/thunar-tpa/thunar-tpa-bindings.xml6
-rw-r--r--plugins/thunar-tpa/thunar-tpa.c8
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 5430fd8c..0a176f90 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 81e518c3..73a53eb2 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);
}