filechooser: Fix paned limits
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Feb 2023 00:12:30 +0000 (19:12 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Feb 2023 00:12:30 +0000 (19:12 -0500)
The intention of the ui file was to not let
the paned shrink both children down to nothing,
but using <child> for the children effectively
overrides the setting of the shrink properties.
Fix that by using child properties instead of
<child>.

gtk/ui/gtkfilechooserwidget.ui

index 6faecfe9eb6c8f8b0af1902077fc5dd620d17195..f7a7c9a5ec628824e2ef768a4b8ff625206a2f29 100644 (file)
@@ -14,7 +14,7 @@
                 <property name="shrink-start-child">0</property>
                 <property name="resize-start-child">0</property>
                 <property name="vexpand">1</property>
-                <child>
+                <property name="start-child">
                   <object class="GtkPlacesSidebar" id="places_sidebar">
                     <property name="show-other-locations">1</property>
                     <property name="show-trash">0</property>
@@ -25,8 +25,8 @@
                     <signal name="show-error-message" handler="places_sidebar_show_error_message_cb" swapped="no"/>
                     <signal name="show-other-locations-with-flags" handler="places_sidebar_show_other_locations_with_flags_cb" swapped="no"/>
                   </object>
-                </child>
-                <child>
+                </property>
+                <property name="end-child">
                   <object class="GtkBox">
                     <property name="orientation">1</property>
                     <child>
                       </object>
                     </child>
                   </object>
-                </child>
+                </property>
               </object>
             </child>
           </object>