[gnome-music/wip/jfelder/gtk4-v3: 39/169] ui/SongWidget: Fix packing




commit 96479530bc053de21a87cbbfd99a9d2b2ca64539
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Apr 12 17:22:57 2021 +0200

    ui/SongWidget: Fix packing

 data/ui/SongWidget.ui | 55 ++++++++++++++++++++++++++-------------------------
 1 file changed, 28 insertions(+), 27 deletions(-)
---
diff --git a/data/ui/SongWidget.ui b/data/ui/SongWidget.ui
index 43fdf21e2..20994a590 100644
--- a/data/ui/SongWidget.ui
+++ b/data/ui/SongWidget.ui
@@ -139,40 +139,41 @@
             <property name="can-focus">False</property>
             <property name="visible">True</property>
             <child>
-              <object class="GtkBox" id="_star_box">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="halign">end</property>
-                <property name="valign">center</property>
-                <!-- <signal name="button-release-event" handler="_on_star_toggle" swapped="no"/> -->
-                <child>
-                  <object class="GtkEventControllerMotion">
-                    <signal name="enter" handler="_on_star_hover" swapped="no"/>
-                    <signal name="leave" handler="_on_star_unhover" swapped="no"/>
-                  </object>
-                </child>
-                <child>
-                  <object class="StarImage" id="_star_image">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
+              <object class="GtkStackPage">
+                <property name="name">star</property>
+                <property name="child">
+                  <object class="GtkBox" id="_star_box">
+                    <property name="can_focus">0</property>
+                    <property name="halign">end</property>
                     <property name="valign">center</property>
-                    <property name="margin-end">12</property>
-                    <property name="margin-start">12</property>
+                    <!-- <signal name="button-release-event" handler="_on_star_toggle" swapped="no"/> -->
+                    <child>
+                      <object class="GtkEventControllerMotion">
+                        <signal name="enter" handler="_on_star_hover" swapped="no"/>
+                        <signal name="leave" handler="_on_star_unhover" swapped="no"/>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="StarImage" id="_star_image">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="valign">center</property>
+                        <property name="margin-end">12</property>
+                        <property name="margin-start">12</property>
+                      </object>
+                    </child>
                   </object>
-                </child>
+                </property>
               </object>
-              <packing>
-                <property name="name">star</property>
-              </packing>
             </child>
             <child>
-              <object class="GtkBox">
-                <property name="visible">True</property>
-              </object>
-              <packing>
+              <object class="GtkStackPage">
                 <property name="name">empty</property>
                 <property name="position">1</property>
-              </packing>
+                <property name="child">
+                  <object class="GtkBox"/>
+                </property>
+              </object>
             </child>
           </object>
         </child>


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