[gtk/matthiasc/for-master: 9/9] settings: Make font-size changes apply immediately
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 9/9] settings: Make font-size changes apply immediately
- Date: Sat, 3 Apr 2021 03:07:05 +0000 (UTC)
commit a8e8e044969813e15304d60bc09558206740127f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Apr 2 23:04:09 2021 -0400
settings: Make font-size changes apply immediately
We need to invalidate the style when font-size changes,
because we propagate this value through the initial
value of the CSS font-size property, and it will not
be recomputed otherwise.
gtk/gtksettings.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 6d096698b0..b88c6ea37d 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -1432,6 +1432,7 @@ gtk_settings_notify (GObject *object,
settings_update_theme (settings);
break;
case PROP_XFT_DPI:
+ settings_invalidate_style (settings);
gtk_system_setting_changed (settings->display, GTK_SYSTEM_SETTING_DPI);
break;
case PROP_XFT_ANTIALIAS:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]