[gnome-music/wip/mschraal/gtk4-v2: 40/53] ui/SongWidget: Fix packing




commit dfd7fd2781040b6e048f7df34787079bf8012c50
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 ba9a6baee..860c24d01 100644
--- a/data/ui/SongWidget.ui
+++ b/data/ui/SongWidget.ui
@@ -150,40 +150,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">10</property>
-                    <property name="margin-start">10</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">10</property>
+                        <property name="margin-start">10</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]