[Xfce4-commits] <xfdesktop:xfce-4.6> update system font size when style changes

Brian J. Tarricone brian at tarricone.org
Sat Aug 22 11:04:01 CEST 2009


Updating branch refs/heads/xfce-4.6
         to f54415dff052631b2615281082338d792fe2e682 (commit)
       from 85fa707daf6686a71613b4955ac5d29a4eff9de5 (commit)

commit f54415dff052631b2615281082338d792fe2e682
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Sat Aug 22 02:03:16 2009 -0700

    update system font size when style changes

 src/xfce-desktop.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index 1bc7727..95cbf2c 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -933,9 +933,22 @@ style_set_cb(GtkWidget *w,
              gpointer user_data)
 {
     XfceDesktop *desktop = XFCE_DESKTOP(w);
+#ifdef ENABLE_DESKTOP_ICONS
+    gdouble old_font_size;
+#endif
     
     gdk_window_set_back_pixmap(w->window, desktop->priv->bg_pixmap, FALSE);
     gtk_widget_queue_draw(w);
+
+#ifdef ENABLE_DESKTOP_ICONS
+    old_font_size = desktop->priv->system_font_size;
+    if(xfce_desktop_ensure_system_font_size(desktop) != old_font_size
+       && desktop->priv->icon_view && !desktop->priv->icons_font_size_set)
+    {
+        xfdesktop_icon_view_set_font_size(XFDESKTOP_ICON_VIEW(desktop->priv->icon_view),
+                                          desktop->priv->system_font_size);
+    }
+#endif
 }
 
 static void



More information about the Xfce4-commits mailing list