[gtk+/gtk-3-0] settings: Recompute styles when font name changes



commit c900fd1cd345384ef1b9ac87323b083f940ba3ea
Author: Benjamin Otte <otte redhat com>
Date:   Sun May 1 04:15:42 2011 +0200

    settings: Recompute styles when font name changes

 gtk/gtksettings.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 45f47fc..93078f8 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -1627,6 +1627,9 @@ gtk_settings_notify (GObject    *object,
       settings_update_color_scheme (settings);
       gtk_style_context_reset_widgets (priv->screen);
       break;
+    case PROP_FONT_NAME:
+      gtk_style_context_reset_widgets (priv->screen);
+      break;
     case PROP_KEY_THEME_NAME:
       settings_update_key_theme (settings);
       break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]