[nautilus] toolbar: set the header-bar style class



commit 38719f91cab4aa06dc12680f572e2ede07732fab
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Aug 20 10:40:08 2013 -0700

    toolbar: set the header-bar style class
    
    So we get the right sizing for buttons.

 src/nautilus-toolbar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 742ae32..dfe15c3 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -402,6 +402,9 @@ nautilus_toolbar_constructed (GObject *obj)
 
        G_OBJECT_CLASS (nautilus_toolbar_parent_class)->constructed (obj);
 
+       gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (self)),
+                                    "header-bar");
+
        self->priv->toolbar = toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        g_object_set (toolbar, "margin", 6, NULL);
        gtk_container_add (GTK_CONTAINER (self), toolbar);


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