diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-07-17 18:56:08 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-07-17 20:48:59 -0400 |
commit | a4332e7f694e8302391464759bdca5d178c8bbfa (patch) | |
tree | 605f2db258bf1544b3ec2c3a2b677af35a3b7e4e | |
parent | 94ebe2106817f6bc7aaf868bd00d0fc381d33e7e (diff) | |
download | gtk+-a4332e7f694e8302391464759bdca5d178c8bbfa.tar.gz |
Set reasonable minimum size for the file chooser
At small sizes it just looks broken.
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 1 | ||||
-rw-r--r-- | gtk/gtkfilechooserdefault.ui | 1 | ||||
-rw-r--r-- | gtk/gtkfilechooserdialog.ui | 1 | ||||
-rw-r--r-- | gtk/gtkplacessidebar.c | 2 |
4 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 2a957c5f81..9d216c7a33 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -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); diff --git a/gtk/gtkfilechooserdefault.ui b/gtk/gtkfilechooserdefault.ui index 86acec570e..0d486b7e50 100644 --- a/gtk/gtkfilechooserdefault.ui +++ b/gtk/gtkfilechooserdefault.ui @@ -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> diff --git a/gtk/gtkfilechooserdialog.ui b/gtk/gtkfilechooserdialog.ui index 67d47b6b57..2b242f2476 100644 --- a/gtk/gtkfilechooserdialog.ui +++ b/gtk/gtkfilechooserdialog.ui @@ -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"> diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index b548682ac3..cf0f952bc4 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -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); |