[five-or-more/arnaudb/wip/gtk4: 10/19] Adapt UI file.



commit b801929c7ae0907e3fe9964f3d8ef64daae9443a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Mar 13 10:30:54 2020 +0100

    Adapt UI file.
    
    Has three FIXME.

 data/five-or-more.ui | 36 +++++++++---------------------------
 1 file changed, 9 insertions(+), 27 deletions(-)
---
diff --git a/data/five-or-more.ui b/data/five-or-more.ui
index f7258b1..5606ade 100644
--- a/data/five-or-more.ui
+++ b/data/five-or-more.ui
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <!-- interface-requires gtk+ 3.10 -->
+  <requires lib="gtk+" version="3.96"/>
   <menu id="primary-menu">
     <section>
       <item>
@@ -53,25 +53,22 @@
     <property name="default_width">320</property>
     <property name="default_height">400</property>
     <property name="icon_name">five-or-more</property>
-    <property name="border-width">18</property>
+<!--    <property name="border-width">18</property> FIXME -->
     <accel-groups>
       <group name="accelgroup"/>
     </accel-groups>
     <child type="titlebar">
       <object class="GtkHeaderBar" id="headerbar">
-        <property name="visible">True</property>
         <property name="can_focus">False</property>
-        <property name="show_close_button">True</property>
+        <property name="show_title_buttons">True</property>
         <property name="title" translatable="yes">Five or More</property>
-        <child>
+        <child type="start">
           <object class="GtkBox" id="preview_hbox">
-            <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="border_width">12</property>
+<!--            <property name="border_width">12</property> FIXME -->
             <property name="orientation">horizontal</property>
             <child>
               <object class="GtkLabel" id="labelNext">
-                <property name="visible">True</property>
                 <property name="ellipsize">PANGO_ELLIPSIZE_END</property>
                 <property name="can_focus">False</property>
                 <property name="label" translatable="yes">Next:</property>
@@ -79,36 +76,21 @@
                   <attribute name="weight" value="bold"/>
                 </attributes>
               </object>
-              <packing>
-                <property name="pack_type">start</property>
-              </packing>
             </child>
           </object>
         </child>
-        <child>
+        <child type="end">
           <object class="GtkMenuButton" id="primary_menu_button">
-            <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="menu_model">primary-menu</property>
-            <accelerator key="F10" signal="activate"/>
-            <child>
-              <object class="GtkImage" id="primary-menu-button-image">
-                <property name="visible">True</property>
-                <property name="icon_size">1</property>
-                <property name="icon_name">open-menu-symbolic</property>
-              </object>
-            </child>
+            <property name="icon_name">open-menu-symbolic</property>
+<!--            <accelerator key="F10" signal="activate"/> FIXME -->
           </object>
-          <packing>
-            <property name="pack_type">end</property>
-          </packing>
         </child>
       </object>
     </child>
     <child>
-          <object class="GamesGridFrame" id="grid_frame">
-            <property name="visible">True</property>
-          </object>
+      <object class="GamesGridFrame" id="grid_frame"/>
     </child>
   </template>
 </interface>


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