[gtk+/wip/matthiasc/font-variations: 57/62] 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: 57/62] font chooser: Don't reset features too eagerly
- Date: Fri, 29 Dec 2017 04:11:41 +0000 (UTC)
commit 8e40232212e75bb348f0eeb9af42e9fa93477622
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]