summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-02-05 16:28:17 -0800
committerCosimo Cecchi <cosimoc@gnome.org>2015-02-05 16:28:17 -0800
commit4aa8a4779483cd0aa08870bba637a00d4a2f13be (patch)
treeaa01798fc445043d9ed8e9cb27ac00bb7f087b3f
parent1b33a2f77dbc58687380456f83ae6993be879a87 (diff)
downloadnautilus-4aa8a4779483cd0aa08870bba637a00d4a2f13be.tar.gz
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.
-rw-r--r--src/nautilus-query-editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index c6ebc1525..14218ad21 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);