Set reasonable minimum size for the file chooser
At small sizes it just looks broken.
This commit is contained in:
@@ -7606,6 +7606,7 @@ _gtk_file_chooser_default_init (GtkFileChooserDefault *impl)
|
||||
*/
|
||||
g_type_ensure (GTK_TYPE_PATH_BAR);
|
||||
gtk_widget_init_template (GTK_WIDGET (impl));
|
||||
gtk_widget_set_size_request (priv->browse_files_tree_view, 280, -1);
|
||||
|
||||
set_file_system_backend (impl);
|
||||
|
||||
|
||||
@@ -233,6 +233,7 @@
|
||||
<object class="GtkScrolledWindow" id="browse_files_swin">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">never</property>
|
||||
<property name="vscrollbar_policy">always</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<property name="border_width">5</property>
|
||||
<property name="role">GtkFileChooserDialog</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<property name="default_width">600</property>
|
||||
<signal name="response" handler="response_cb" swapped="no"/>
|
||||
<child internal-child="vbox">
|
||||
<object class="GtkBox" id="dialog-vbox1">
|
||||
|
||||
@@ -3652,6 +3652,8 @@ gtk_places_sidebar_init (GtkPlacesSidebar *sidebar)
|
||||
|
||||
sidebar->shortcuts = NULL;
|
||||
|
||||
gtk_widget_set_size_request (GTK_WIDGET (sidebar), 140, 280);
|
||||
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sidebar),
|
||||
GTK_POLICY_NEVER,
|
||||
GTK_POLICY_AUTOMATIC);
|
||||
|
||||
Reference in New Issue
Block a user