summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-08-20 10:40:08 -0700
committerCosimo Cecchi <cosimoc@gnome.org>2013-08-20 10:40:08 -0700
commit38719f91cab4aa06dc12680f572e2ede07732fab (patch)
treed47462b9cfe989008af457b3b523ab978e5b61fa
parent8dec8bb2126026a707cbaa6a0a6aba029dfd8f0b (diff)
downloadnautilus-38719f91cab4aa06dc12680f572e2ede07732fab.tar.gz
toolbar: set the header-bar style class
So we get the right sizing for buttons.
-rw-r--r--src/nautilus-toolbar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 742ae32ee..dfe15c3e7 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);