summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-07-18 19:40:12 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-07-18 19:40:12 -0400
commitf4db36ef49c3d6e96572e5bb5f5ef2aea1bbafae (patch)
treef54a7b296cbfb1221d26095b75db37add6a716b9 /gtk/gtktoolbar.c
parent87b7103db1650c29a869303ee082033edf4fd561 (diff)
downloadgtk+-f4db36ef49c3d6e96572e5bb5f5ef2aea1bbafae.tar.gz
GtkToolbar: Set orientable style classes initially
This was an omission, horizontal/vertical would only be set when the orientation is changed.
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 061793d429..36d001acd5 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -689,6 +689,8 @@ gtk_toolbar_init (GtkToolbar *toolbar)
priv->icon_size = DEFAULT_ICON_SIZE;
priv->animation = DEFAULT_ANIMATION_STATE;
+ _gtk_orientable_set_style_classes (GTK_ORIENTABLE (toolbar));
+
priv->arrow_button = gtk_toggle_button_new ();
g_signal_connect (priv->arrow_button, "button-press-event",
G_CALLBACK (gtk_toolbar_arrow_button_press), toolbar);