summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-02-04 11:06:43 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-02-04 11:10:51 +0100
commit3d7cad970bc8786286b9698032da37addc55b0b7 (patch)
treee0fe1019e348a26025829be2da55e197e554cc85 /src
parentcb468144cfe4b2c92b2c08332fe59140992353dd (diff)
downloadnautilus-3d7cad970bc8786286b9698032da37addc55b0b7.tar.gz
nautilus-query-editor: Avoid hiding the search
The query editor is hidden if the size of the window is less than a certain value because it has not enough space for it. So make sure all widgets are visible setting a minimum width.
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-query-editor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 41aba9c27..c6ebc1525 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -917,6 +917,7 @@ setup_widgets (NautilusQueryEditor *editor)
gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
"search-bar");
gtk_box_pack_start (GTK_BOX (editor), toolbar, TRUE, TRUE, 0);
+ g_object_set (G_OBJECT (editor), "width-request", 400, NULL);
item = gtk_tool_item_new ();
gtk_tool_item_set_expand (item, TRUE);