[five-or-more] Adapt UI files.



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

    Adapt UI files.
    
    Has some FIXME.

 data/ui/five-or-more.ui | 36 +++++++++---------------------------
 data/ui/help-overlay.ui | 13 +------------
 2 files changed, 10 insertions(+), 39 deletions(-)
---
diff --git a/data/ui/five-or-more.ui b/data/ui/five-or-more.ui
index 9976372..c2ad0f8 100644
--- a/data/ui/five-or-more.ui
+++ b/data/ui/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.99"/>
   <menu id="primary-menu">
     <section>
       <item>
@@ -110,26 +110,23 @@
     <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>
         <!-- Translators: name of the application, as displayed in the window manager -->
         <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>
                 <!-- Translators: label displayed in the headerbar, introducing the next balls to be added 
to the board -->
@@ -138,36 +135,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">
-            <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>
diff --git a/data/ui/help-overlay.ui b/data/ui/help-overlay.ui
index e70717b..f86bce4 100644
--- a/data/ui/help-overlay.ui
+++ b/data/ui/help-overlay.ui
@@ -16,20 +16,17 @@
   along with Five-or-More.  If not, see <https://www.gnu.org/licenses/>.
 -->
 <interface>
-  <requires lib="gtk+" version="3.12"/>
+  <requires lib="gtk+" version="3.99"/>
   <object class="GtkShortcutsWindow" id="help_overlay">
     <child>
       <object class="GtkShortcutsSection">
-        <property name="visible">True</property>
         <property name="max-height">6</property>
         <child>
           <object class="GtkShortcutsGroup">
-            <property name="visible">True</property>
             <!-- Translators: header of the "Start a new game" (only) shortcut section -->
             <property name="title" translatable="yes" context="shortcut window">New game</property>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <!-- Translators: in the Keyboard Shortcuts window, section "New game"; action of the Ctrl-N 
shortcut -->
                 <property name="title" translatable="yes" context="shortcut window">Start a new 
game</property>
                 <property name="accelerator">&lt;Primary&gt;n</property>
@@ -39,12 +36,10 @@
         </child>
         <child>
           <object class="GtkShortcutsGroup">
-            <property name="visible">True</property>
             <!-- Translators: header of the "Play with keyboard" shortcut section -->
             <property name="title" translatable="yes" context="shortcut window">Play with keyboard</property>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <!-- Translators: in the Keyboard Shortcuts window, section "Play with keyboard"; action of 
the arrows -->
                 <property name="title" translatable="yes" context="shortcut window">Move keyboard 
cursor</property>
                 <property name="accelerator">Left Up Right Down</property>
@@ -52,7 +47,6 @@
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <!-- Translators: in the Keyboard Shortcuts window, section "Play with keyboard"; action of 
the return or space keys -->
                 <property name="title" translatable="yes" context="shortcut window">Select or drop 
tile</property>
                 <property name="accelerator">Return space</property>
@@ -62,12 +56,10 @@
         </child>
         <child>
           <object class="GtkShortcutsGroup">
-            <property name="visible">True</property>
             <!-- Translators: header of the "Toggle main menu," "Keyboard shortcuts," "About," "Quit," etc. 
shortcuts section -->
             <property name="title" translatable="yes" context="shortcut window">Generic</property>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <!-- Translators: in the Keyboard Shortcuts window, section "Generic"; action of the F10 
shortcut; toggles the hamburger menu -->
                 <property name="title" translatable="yes" context="shortcut window">Toggle main 
menu</property>
                 <property name="accelerator">F10</property>
@@ -75,7 +67,6 @@
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <!-- Translators: in the Keyboard Shortcuts window, section "Generic"; action of the 
Ctrl-Shift-? shortcut; opens the Keyboard Shortcuts dialog -->
                 <property name="title" translatable="yes" context="shortcut window">Keyboard 
shortcuts</property>
                 <property name="accelerator">&lt;Primary&gt;question</property> <!-- TODO &lt;Primary&gt;F1 
-->
@@ -83,7 +74,6 @@
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <!-- Translators: in the Keyboard Shortcuts window, section "Generic"; action of the F1 
shortcut; opens the help of the application -->
                 <property name="title" translatable="yes" context="shortcut window">Help</property>
                 <property name="accelerator">F1</property>
@@ -99,7 +89,6 @@
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <!-- Translators: in the Keyboard Shortcuts window, section "Generic"; action of the Ctrl-Q 
shortcut; quits the application -->
                 <property name="title" translatable="yes" context="shortcut window">Quit</property>
                 <property name="accelerator">&lt;Primary&gt;q</property>


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