[lightsoff/arnaudb/wip/gtk4: 20/28] Update remaining UI files.




commit 9f1f33db15a3b667ebd5021df84f6e04810bc9df
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Nov 28 13:07:26 2020 +0100

    Update remaining UI files.

 data/lightsoff.ui | 76 +++++++++++++++----------------------------------------
 1 file changed, 21 insertions(+), 55 deletions(-)
---
diff --git a/data/lightsoff.ui b/data/lightsoff.ui
index 0a55874..0f3bad2 100644
--- a/data/lightsoff.ui
+++ b/data/lightsoff.ui
@@ -24,71 +24,47 @@
     </section>
   </menu>
 
-  <requires lib="gtk+" version="3.12"/>
+  <requires lib="gtk+" version="3.99"/>
   <template class="LightsoffWindow" parent="ManagedWindow">
-    <property name="can_focus">False</property>
+    <property name="can-focus">False</property>
     <property name="resizable">True</property>
+    <property name="title" translatable="no">Puzzle X</property>
     <child type="titlebar">
       <object class="GtkHeaderBar">
-        <property name="visible">True</property>
-        <property name="can_focus">False</property>
-        <property name="title" translatable="no">Puzzle X</property>
-        <property name="has_subtitle">False</property>
-        <property name="show_close_button">True</property>
-        <child>
+        <property name="can-focus">False</property>
+        <property name="show-title-buttons">True</property>
+        <child type="start">
           <object class="GtkMenuButton">
-            <property name="visible">True</property>
             <property name="valign">center</property>
-            <property name="can_focus">True</property>
-            <property name="receives_default">False</property>
-            <property name="use_underline">True</property>
+            <property name="can-focus">True</property>
+            <property name="receives-default">False</property>
+            <property name="use-underline">True</property>
             <!-- Translators: label of a button, in the headerbar (with a mnemonic that appears when 
pressing Alt); pops up a menu for going previous/next level -->
             <property name="label" translatable="yes">_Change Puzzle</property>
-            <property name="menu_model">change-level-menu</property>
+            <property name="menu-model">change-level-menu</property>
           </object>
         </child>
-        <child>
-          <object class="GameButton" id="game_button_1">
-            <property name="visible">True</property>
-          </object>
-          <packing>
-            <property name="pack_type">end</property>
-            <property name="position">1</property>
-          </packing>
+        <child type="end">
+          <object class="GameButton" id="game_button_1"/>
         </child>
-        <child>
+        <child type="end">
           <object class="GtkMenuButton" id="menu_button">
-            <property name="visible">True</property>
             <property name="valign">center</property>
-            <property name="can_focus">True</property>
-            <property name="receives_default">True</property>
-            <child>
-              <object class="GtkImage" id="primary-menu-button">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="icon_name">open-menu-symbolic</property>
-              </object>
-            </child>
+            <property name="can-focus">True</property>
+            <property name="receives-default">True</property>
+            <property name="icon-name">open-menu-symbolic</property>
           </object>
-          <packing>
-            <property name="pack_type">end</property>
-            <property name="position">0</property>
-          </packing>
         </child>
       </object>
     </child>
     <child>
       <object class="GtkOverlay">
-        <property name="visible">True</property>
         <child>
           <object class="GtkGrid">
-            <property name="visible">True</property>
             <property name="orientation">vertical</property>
             <child>
               <object class="GtkAspectFrame" id="aspect_frame">
-                <property name="visible">True</property>
-                <property name="obey_child">False</property>
-                <property name="shadow_type">none</property>
+                <property name="obey-child">False</property>
                 <style>
                   <class name="aspect"/>
                 </style>
@@ -96,27 +72,19 @@
             </child>
             <child>
               <object class="GtkRevealer" id="revealer">
-                <property name="visible">True</property>
                 <property name="reveal-child">False</property>
                 <child>
                   <object class="GtkActionBar">
-                    <property name="visible">True</property>
-                    <child>
+                    <child type="start">
                       <object class="GtkLabel" id="level_label">
-                        <property name="visible">True</property>
                         <property name="label" translatable="no">Puzzle X</property>
                         <style>
                           <class name="level-label"/>
                         </style>
                       </object>
                     </child>
-                    <child>
-                      <object class="GameButton" id="game_button_2">
-                        <property name="visible">True</property>
-                      </object>
-                      <packing>
-                        <property name="pack_type">end</property>
-                      </packing>
+                    <child type="end">
+                      <object class="GameButton" id="game_button_2"/>
                     </child>
                   </object>
                 </child>
@@ -125,9 +93,7 @@
           </object>
         </child>
         <child type="overlay">
-          <object class="NotificationsRevealer" id="notifications_revealer">
-            <property name="visible">True</property>
-          </object>
+          <object class="NotificationsRevealer" id="notifications_revealer"/>
         </child>
       </object>
     </child>


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