[nautilus] Use search-bar style class for query editor



commit 0e2084800c4ea603b115813e46c9beecff6b38b2
Author: William Jon McCann <william jon mccann gmail com>
Date:   Thu Oct 10 16:25:41 2013 -0400

    Use search-bar style class for query editor
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709862

 src/nautilus-query-editor.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 92ddac7..349f400 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -851,6 +851,8 @@ nautilus_query_editor_add_row (NautilusQueryEditor *editor,
 
        /* create the toolbar and the box container for its contents */
        row->toolbar = gtk_toolbar_new ();
+       gtk_style_context_add_class (gtk_widget_get_style_context (row->toolbar),
+                                    "search-bar");
        gtk_box_pack_start (GTK_BOX (editor), row->toolbar, TRUE, TRUE, 0);
 
        item = gtk_tool_item_new ();
@@ -943,7 +945,7 @@ setup_widgets (NautilusQueryEditor *editor)
        /* create the toolbar and the box container for its contents */
        toolbar = gtk_toolbar_new ();
        gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
-                                    GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+                                    "search-bar");
        gtk_box_pack_start (GTK_BOX (editor), toolbar, TRUE, TRUE, 0);
 
        item = gtk_tool_item_new ();


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