[Xfce4-commits] <xfdesktop:master> Add a signal handler for removable devices to update the icon when the theme is changed (Bug #8977)
Eric Koegel
noreply at xfce.org
Fri Jan 25 12:36:04 CET 2013
Updating branch refs/heads/master
to 7d3a73bb593f34eef059b44d063285e0ffdada91 (commit)
from cad4ea4b789c4f67a666640d333bc6120ee4d5d5 (commit)
commit 7d3a73bb593f34eef059b44d063285e0ffdada91
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 adcecc1..50bcc45 100644
--- a/src/xfdesktop-volume-icon.c
+++ b/src/xfdesktop-volume-icon.c
@@ -1048,6 +1048,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