gtk-demo: Remove random numbers
authorBenjamin Otte <otte@redhat.com>
Wed, 7 Jun 2023 13:54:53 +0000 (15:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 7 Jun 2023 14:00:44 +0000 (16:00 +0200)
There were 3 different random numbers set to determine the sidebar width
and all of them were wrong. Remove them.

Instead, propagate the natural width of the listitems.

demos/gtk-demo/main.ui

index fb9064cc5ccd87acee1a6665a5fd1b52a70cbfb3..6efbc8e9d179c932c23b73ae9e5a60f3b803281d 100644 (file)
@@ -57,7 +57,6 @@
       <object class="GtkBox">
         <child>
           <object class="GtkBox">
-            <property name="width-request">220</property>
             <property name="orientation">vertical</property>
             <child>
               <object class="GtkSearchBar" id="searchbar">
@@ -76,9 +75,8 @@
                 <style>
                   <class name="sidebar"/>
                 </style>
-                <property name="width-request">120</property>
                 <property name="hscrollbar-policy">never</property>
-                <property name="min-content-width">150</property>
+                <property name="propagate-natural-width">1</property>
                 <property name="vexpand">1</property>
                 <child>
                   <object class="GtkListView" id="listview">