[gtk+/wip/matthiasc/font-variations: 53/58] font chooser: Hide the language combo when unneeded



commit fd4a9372d0a496a780d68ef70088f8f08d7a4bf6
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]