[Xfce4-commits] <xfdesktop:master> Reload the iconview on reload
Eric Koegel
noreply at xfce.org
Wed Feb 26 08:08:01 CET 2014
Updating branch refs/heads/master
to 36387ed6c75662a42d822d32029e425ae73a556d (commit)
from 26feb3b13e8c3c5ea9f41a51768dec230f139f15 (commit)
commit 36387ed6c75662a42d822d32029e425ae73a556d
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Wed Feb 26 10:02:35 2014 +0300
Reload the iconview on reload
Cut the icon view code rather than a copy. Putting it back in.
src/xfce-desktop.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index ec66110..9be8504 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -1702,6 +1702,16 @@ xfce_desktop_refresh(XfceDesktop *desktop)
backdrop_changed_cb(backdrop, desktop);
}
+
+#ifdef ENABLE_DESKTOP_ICONS
+ /* reload icon view */
+ if(desktop->priv->icon_view) {
+ gtk_widget_destroy(desktop->priv->icon_view);
+ desktop->priv->icon_view = NULL;
+ }
+ xfce_desktop_setup_icon_view(desktop);
+#endif
+
}
void xfce_desktop_arrange_icons(XfceDesktop *desktop)
More information about the Xfce4-commits
mailing list