From b45721373aa9847a48340d7bc94bbf38728b2d63 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Sun, 9 May 2021 16:54:59 +0500 Subject: [PATCH] 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. --- gtk/gtkactionbar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index 8058fecde0..e82ed3d7c0 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -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);