[Xfce4-commits] <xfdesktop:xfce-4.10> Add a signal handler for removable devices to update the icon when the theme is changed (Bug #8977)

Jérôme Guelfucci noreply at xfce.org
Sat Mar 2 18:06:05 CET 2013


Updating branch refs/heads/xfce-4.10
         to 6fc2ce01eac11e03285a9da3fc228320fa9eeeff (commit)
       from ebad377e5cd067cec9f2b402dff4991ddc4cc3b5 (commit)

commit 6fc2ce01eac11e03285a9da3fc228320fa9eeeff
Author: Brad Hermanson <apeitheo at gmail.com>
Date:   Tue Jan 1 16:25:04 2013 +0300

    Add a signal handler for removable devices to update the icon when the theme is changed (Bug #8977)

 src/xfdesktop-volume-icon.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/xfdesktop-volume-icon.c b/src/xfdesktop-volume-icon.c
index 734409b..115ae51 100644
--- a/src/xfdesktop-volume-icon.c
+++ b/src/xfdesktop-volume-icon.c
@@ -992,6 +992,11 @@ xfdesktop_volume_icon_new(GVolume *volume,
         g_object_unref(mount);
     }
 
+    g_signal_connect_swapped(G_OBJECT(gtk_icon_theme_get_for_screen(screen)),
+                             "changed",
+                             G_CALLBACK(xfdesktop_volume_icon_invalidate_pixbuf),
+                             volume_icon);
+
     g_signal_connect(volume, "changed", 
                      G_CALLBACK(xfdesktop_volume_icon_changed), 
                      volume_icon);


More information about the Xfce4-commits mailing list