[gtk+/wip/matthiasc/font-variations: 50/58] font chooser: Don't reset features too eagerly
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/font-variations: 50/58] font chooser: Don't reset features too eagerly
- Date: Sat, 30 Dec 2017 05:23:39 +0000 (UTC)
commit cdf5b3e0c0b12172f1f5940da4a039ab85ad6604
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 28 12:13:07 2017 -0500
font chooser: Don't reset features too eagerly
We shouldn't reset the font features when changing the size.
gtk/gtkfontchooserwidget.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 2e57eeb..934948c 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -2690,13 +2690,14 @@ gtk_font_chooser_widget_merge_font_desc (GtkFontChooserWidget *fontchooser
}
gtk_font_chooser_widget_update_marks (fontchooser);
- }
- gtk_font_chooser_widget_update_preview_attributes (fontchooser);
#if defined(HAVE_HARFBUZZ) && defined(HAVE_PANGOFT)
- gtk_font_chooser_widget_update_font_features (fontchooser);
- gtk_font_chooser_widget_update_font_variations (fontchooser);
+ gtk_font_chooser_widget_update_font_features (fontchooser);
+ gtk_font_chooser_widget_update_font_variations (fontchooser);
#endif
+ }
+
+ gtk_font_chooser_widget_update_preview_attributes (fontchooser);
g_object_notify (G_OBJECT (fontchooser), "font");
g_object_notify (G_OBJECT (fontchooser), "font-desc");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]