[nautilus] nautilus-query-editor: Avoid hiding the search



commit 3d7cad970bc8786286b9698032da37addc55b0b7
Author: Carlos Soriano <csoriano gnome org>
Date:   Wed Feb 4 11:06:43 2015 +0100

    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.

 src/nautilus-query-editor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 41aba9c..c6ebc15 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]