[accerciser] Fix some ui labelling



commit 8b9731aee7c60b74a4a7a3de277b5da291e004e3
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Fri May 17 14:43:44 2019 +0200

    Fix some ui labelling

 plugins/interface_view.ui | 38 +++++++++++++++++++++++++++++++-------
 plugins/validate.ui       |  6 ------
 2 files changed, 31 insertions(+), 13 deletions(-)
---
diff --git a/plugins/interface_view.ui b/plugins/interface_view.ui
index c052338..1e08fb5 100644
--- a/plugins/interface_view.ui
+++ b/plugins/interface_view.ui
@@ -126,6 +126,9 @@
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="label_acc_child count"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
@@ -181,6 +184,9 @@
                                     <attributes>
                                       <attribute name="style" value="italic"/>
                                     </attributes>
+                                    <accessibility>
+                                      <relation type="labelled-by" target="label58"/>
+                                    </accessibility>
                                   </object>
                                 </child>
                               </object>
@@ -194,6 +200,9 @@
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="label_acc_desc"/>
+                                </accessibility>
                               </object>
                             </child>
                           </object>
@@ -227,12 +236,15 @@
                                     <attributes>
                                       <attribute name="style" value="italic"/>
                                     </attributes>
+                                    <accessibility>
+                                      <relation type="labelled-by" target="label-id"/>
+                                    </accessibility>
                                   </object>
                                 </child>
                               </object>
                             </child>
                             <child type="label">
-                              <object class="GtkLabel">
+                              <object class="GtkLabel" id="label-id">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="events">GDK_POINTER_MOTION_MASK | 
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -240,6 +252,9 @@
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="label_acc_id"/>
+                                </accessibility>
                               </object>
                             </child>
                           </object>
@@ -279,7 +294,7 @@
                                             <property name="min_content_height">75</property>
                                             <child>
                                               <object class="GtkTreeView" id="states_view">
-                                                <property name="visible">True</property>
+                                                <property name="visible">False</property>
                                                 <property name="can_focus">True</property>
                                                 <property name="model">states_liststore</property>
                                                 <property name="headers_visible">False</property>
@@ -338,7 +353,7 @@
                                             <property name="min_content_height">75</property>
                                             <child>
                                               <object class="GtkTreeView" id="accattrib_view">
-                                                <property name="visible">True</property>
+                                                <property name="visible">False</property>
                                                 <property name="can_focus">True</property>
                                                 <property name="model">accattrib_liststore</property>
                                                 <property name="headers_visible">False</property>
@@ -429,7 +444,7 @@
                                         <property name="min_content_height">75</property>
                                         <child>
                                           <object class="GtkTreeView" id="relations_view">
-                                            <property name="visible">True</property>
+                                            <property name="visible">False</property>
                                             <property name="can_focus">True</property>
                                             <property name="model">relations_treestore</property>
                                             <property name="headers_visible">False</property>
@@ -2161,7 +2176,7 @@
                                                 <property name="xalign">0</property>
                                                 <signal name="clicked" handler="_onTableButtonClicked" 
swapped="no"/>
                                                 <accessibility>
-                                                  <relation type="labelled-by" target="label50"/>
+                                                  <relation type="labelled-by" target="label45"/>
                                                 </accessibility>
                                               </object>
                                               <packing>
@@ -2434,6 +2449,9 @@
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="table_cell_button"/>
+                                </accessibility>
                               </object>
                             </child>
                           </object>
@@ -2673,6 +2691,9 @@
                                             <property name="can_focus">True</property>
                                             <property name="model">textattrib_liststore</property>
                                             <property name="headers_visible">False</property>
+                                            <accessibility>
+                                              <relation type="labelled-by" target="label8"/>
+                                            </accessibility>
                                             <child internal-child="selection">
                                               <object class="GtkTreeSelection" id="treeview-selection9"/>
                                             </child>
@@ -2716,6 +2737,9 @@
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="label" translatable="yes">Attributes</property>
+                                <accessibility>
+                                  <relation type="label-for" target="treeview_text_attr"/>
+                                </accessibility>
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
@@ -2825,7 +2849,7 @@
                                 <property name="selectable">True</property>
                                 <property name="xalign">0</property>
                                 <accessibility>
-                                  <relation type="labelled-by" target="label35"/>
+                                  <relation type="labelled-by" target="label34"/>
                                 </accessibility>
                               </object>
                               <packing>
@@ -2844,7 +2868,7 @@
                                 <property name="selectable">True</property>
                                 <property name="xalign">0</property>
                                 <accessibility>
-                                  <relation type="labelled-by" target="label34"/>
+                                  <relation type="labelled-by" target="label35"/>
                                 </accessibility>
                               </object>
                               <packing>
diff --git a/plugins/validate.ui b/plugins/validate.ui
index 69e9a44..2f9b7b5 100644
--- a/plugins/validate.ui
+++ b/plugins/validate.ui
@@ -38,9 +38,6 @@
             <property name="label" translatable="yes">Sche_ma:</property>
             <property name="use_underline">True</property>
             <property name="mnemonic_widget">schema combo</property>
-            <accessibility>
-              <relation type="label-for" target="schema combo"/>
-            </accessibility>
           </object>
           <packing>
             <property name="expand">False</property>
@@ -51,9 +48,6 @@
         <child>
           <object class="GtkComboBox" id="schema combo">
             <property name="visible">True</property>
-            <accessibility>
-              <relation type="labelled-by" target="label1"/>
-            </accessibility>
           </object>
           <packing>
             <property name="position">1</property>


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