[gtk+/wip/matthiasc/font-variations: 2/2] Add ss06 to the list of feature tags



commit 753dfeff888979a73d316374fdcb0b71542f391b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 16 14:50:57 2017 -0400

    Add ss06 to the list of feature tags
    
    The list is still incomplete, this is just a small addition.

 demos/gtk-demo/font-features.ui |   34 +++++++++++++++++++++++++++++++++-
 demos/gtk-demo/font_features.c  |    9 +++++----
 2 files changed, 38 insertions(+), 5 deletions(-)
---
diff --git a/demos/gtk-demo/font-features.ui b/demos/gtk-demo/font-features.ui
index 93910e1..71d523b 100644
--- a/demos/gtk-demo/font-features.ui
+++ b/demos/gtk-demo/font-features.ui
@@ -1571,7 +1571,7 @@
                                     </child>
                                     <child>
                                       <object class="GtkCheckButton" id="ss05">
-                                        <property name="label" translatable="yes">Set 5</property>
+                                        <property name="label" translatable="yes">Set 4</property>
                                         <property name="visible">1</property>
                                         <property name="can-focus">1</property>
                                         <property name="draw-indicator">1</property>
@@ -1582,6 +1582,38 @@
                                     </child>
                                   </object>
                                 </child>
+                                <child>
+                                  <object class="GtkBox">
+                                    <property name="visible">1</property>
+                                    <child>
+                                      <object class="GtkImage" id="ss06_pres">
+                                        <property name="visible">1</property>
+                                        <property name="icon-name">object-select-symbolic</property>
+                                        <property name="icon-size">1</property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkCheckButton" id="ss06_dflt">
+                                        <property name="visible">1</property>
+                                        <property name="can-focus">1</property>
+                                        <property name="draw-indicator">1</property>
+                                        <property name="valign">baseline</property>
+                                        <signal name="notify::active" handler="update_display" swapped="no"/>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkCheckButton" id="ss06">
+                                        <property name="label" translatable="yes">Set 6</property>
+                                        <property name="visible">1</property>
+                                        <property name="can-focus">1</property>
+                                        <property name="draw-indicator">1</property>
+                                        <property name="valign">baseline</property>
+                                        <signal name="notify::active" handler="update_display" swapped="no"/>
+                                        <property name="sensitive" bind-source="ss06_dflt" 
bind-property="active" bind-flags="sync-create|bidirectional"/>
+                                      </object>
+                                    </child>
+                                  </object>
+                                </child>
                               </object>
                             </child>
                           </object>
diff --git a/demos/gtk-demo/font_features.c b/demos/gtk-demo/font_features.c
index 3260523..56a4936 100644
--- a/demos/gtk-demo/font_features.c
+++ b/demos/gtk-demo/font_features.c
@@ -35,16 +35,17 @@ static GtkWidget *variations_heading;
 static GtkWidget *variations_grid;
 static GtkWidget *instance_combo;
 
-#define num_features 40
+#define num_features 41
 
-static GtkWidget *toggle[num_features];
-static GtkWidget *icon[num_features];
 static const char *feature_names[num_features] = {
   "kern", "liga", "dlig", "hlig", "clig", "smcp", "c2sc", "pcap", "c2pc", "unic",
   "cpsp", "case", "lnum", "onum", "pnum", "tnum", "frac", "afrc", "zero", "nalt",
   "sinf", "swsh", "cswh", "locl", "calt", "hist", "salt", "titl", "rand", "subs",
-  "sups", "init", "medi", "fina", "isol", "ss01", "ss02", "ss03", "ss04", "ss05"
+  "sups", "init", "medi", "fina", "isol", "ss01", "ss02", "ss03", "ss04", "ss05",
+  "ss06"
 };
+static GtkWidget *toggle[num_features];
+static GtkWidget *icon[num_features];
 
 static void add_font_variations (GString *s);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]