[Xfce4-commits] r23310 - xfdesktop/trunk/src

Brian Tarricone kelnos at xfce.org
Sat Oct 7 18:47:21 UTC 2006


Author: kelnos
Date: 2006-10-07 18:47:20 +0000 (Sat, 07 Oct 2006)
New Revision: 23310

Modified:
   xfdesktop/trunk/src/xfdesktop-special-file-icon.c
Log:
besure to disconnect the TrashChanged signal and unref the DBusGProxy when
the trash icon gets destroyed.  the former is not necessary now, but will
be if i move the dbus proxy stuff to a common location.  this might fix
bug 2271, or might not.  either way, it was a bug...


Modified: xfdesktop/trunk/src/xfdesktop-special-file-icon.c
===================================================================
--- xfdesktop/trunk/src/xfdesktop-special-file-icon.c	2006-10-07 17:37:28 UTC (rev 23309)
+++ xfdesktop/trunk/src/xfdesktop-special-file-icon.c	2006-10-07 18:47:20 UTC (rev 23310)
@@ -88,6 +88,9 @@
 
 
 static inline void xfdesktop_special_file_icon_invalidate_pixbuf(XfdesktopSpecialFileIcon *icon);
+static void xfdesktop_special_file_icon_trash_changed_cb(DBusGProxy *proxy,
+                                                         gboolean trash_full,
+                                                         gpointer user_data);
 
 
 #ifdef HAVE_THUNARX
@@ -149,6 +152,13 @@
     if(icon->priv->tooltip)
         g_free(icon->priv->tooltip);
     
+    if(icon->priv->dbus_proxy) {
+        dbus_g_proxy_disconnect_signal(icon->priv->dbus_proxy, "TrashChanged",
+                                       G_CALLBACK(xfdesktop_special_file_icon_trash_changed_cb),
+                                       icon);
+        g_object_unref(G_OBJECT(icon->priv->dbus_proxy));
+    }
+    
     G_OBJECT_CLASS(xfdesktop_special_file_icon_parent_class)->finalize(obj);
 }
 



More information about the Xfce4-commits mailing list