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



commit 14dab40bd6087f3b63a8981e59d52c9541849366
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 de4156d..5a03a6c 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -2524,6 +2524,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;
@@ -2574,6 +2576,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]