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

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


Updating branch refs/heads/master
         to e1fda589fe58e8e3a5219aeb0f39840af88a306e (commit)
       from 1a7d9071b98391a4eb61c08fecfae3ea3955c8db (commit)

commit e1fda589fe58e8e3a5219aeb0f39840af88a306e
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