[gtk+/wip/matthiasc/font-variations: 60/62] font chooser: Hide the language combo when unneeded
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/font-variations: 60/62] font chooser: Hide the language combo when unneeded
- Date: Fri, 29 Dec 2017 04:11:56 +0000 (UTC)
commit feb4e3d2046e9019d3c7003d2f8511c70a2f6d88
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 28 12:46:03 2017 -0500
font chooser: Hide the language combo when unneeded
If we have no features, we don't need to select a language.
gtk/gtkfontchooserwidget.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index edd455b..89ffc3b 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -2519,6 +2519,8 @@ gtk_font_chooser_widget_update_font_features (GtkFontChooserWidget *fontchooser)
int i, j;
GList *l;
+ gtk_widget_hide (priv->feature_language_combo);
+
for (l = priv->feature_items; l; l = l->next)
{
FeatureItem *item = l->data;
@@ -2569,6 +2571,7 @@ gtk_font_chooser_widget_update_font_features (GtkFontChooserWidget *fontchooser)
gtk_widget_show (item->feat);
gtk_widget_show (gtk_widget_get_parent (item->feat));
+ gtk_widget_show (priv->feature_language_combo);
if (GTK_IS_RADIO_BUTTON (item->feat))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]