mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
GtkToolbar: Set orientable style classes initially
This was an omission, horizontal/vertical would only be set when the orientation is changed.
This commit is contained in:
parent
87b7103db1
commit
f4db36ef49
@ -689,6 +689,8 @@ gtk_toolbar_init (GtkToolbar *toolbar)
|
|||||||
priv->icon_size = DEFAULT_ICON_SIZE;
|
priv->icon_size = DEFAULT_ICON_SIZE;
|
||||||
priv->animation = DEFAULT_ANIMATION_STATE;
|
priv->animation = DEFAULT_ANIMATION_STATE;
|
||||||
|
|
||||||
|
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (toolbar));
|
||||||
|
|
||||||
priv->arrow_button = gtk_toggle_button_new ();
|
priv->arrow_button = gtk_toggle_button_new ();
|
||||||
g_signal_connect (priv->arrow_button, "button-press-event",
|
g_signal_connect (priv->arrow_button, "button-press-event",
|
||||||
G_CALLBACK (gtk_toolbar_arrow_button_press), toolbar);
|
G_CALLBACK (gtk_toolbar_arrow_button_press), toolbar);
|
||||||
|
Loading…
Reference in New Issue
Block a user