[nautilus] query-editor: don't hardcode a width request



commit 4aa8a4779483cd0aa08870bba637a00d4a2f13be
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Feb 5 16:28:17 2015 -0800

    query-editor: don't hardcode a width request
    
    Instead, set the show-arrow property on the toolbar to FALSE, so that it
    will alwways report the correct width request.

 src/nautilus-query-editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index c6ebc15..14218ad 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -914,10 +914,10 @@ setup_widgets (NautilusQueryEditor *editor)
 
        /* create the toolbar and the box container for its contents */
        toolbar = gtk_toolbar_new ();
+       gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), FALSE);
        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]