[gtk/wip/exalm/actionbar: 1/3] action-bar: Add start and end style classes to GtkActionBar boxes
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/actionbar: 1/3] action-bar: Add start and end style classes to GtkActionBar boxes
- Date: Sun, 9 May 2021 12:02:16 +0000 (UTC)
commit b45721373aa9847a48340d7bc94bbf38728b2d63
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun May 9 16:54:59 2021 +0500
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]