mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
action-bar: Add start and end style classes to GtkActionBar boxes
Make it possible to add spacing to them from the theme without affecting the center child should it happen to be a box.
This commit is contained in:
parent
dc878f24d2
commit
b45721373a
@ -181,6 +181,9 @@ gtk_action_bar_init (GtkActionBar *self)
|
||||
self->start_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||
self->end_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||
|
||||
gtk_widget_add_css_class (self->start_box, "start");
|
||||
gtk_widget_add_css_class (self->end_box, "end");
|
||||
|
||||
self->center_box = gtk_center_box_new ();
|
||||
gtk_center_box_set_start_widget (GTK_CENTER_BOX (self->center_box), self->start_box);
|
||||
gtk_center_box_set_end_widget (GTK_CENTER_BOX (self->center_box), self->end_box);
|
||||
|
Loading…
Reference in New Issue
Block a user