[libhandy/wip/exalm/ci: 1/2] header-bar: Always add .titlebar style class



commit 2453c75b059329950cb63c6bb9d3d31da13ee667
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu May 21 23:45:30 2020 +0500

    header-bar: Always add .titlebar style class

 src/hdy-header-bar.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/hdy-header-bar.c b/src/hdy-header-bar.c
index aceedda3..903b0d51 100644
--- a/src/hdy-header-bar.c
+++ b/src/hdy-header-bar.c
@@ -2248,6 +2248,7 @@ static void
 hdy_header_bar_init (HdyHeaderBar *self)
 {
   HdyHeaderBarPrivate *priv;
+  GtkStyleContext *context;
 
   priv = hdy_header_bar_get_instance_private (self);
 
@@ -2265,6 +2266,11 @@ hdy_header_bar_init (HdyHeaderBar *self)
   construct_label_box (self);
 
   priv->controller = hdy_window_handle_controller_new (GTK_WIDGET (self));
+
+  context = gtk_widget_get_style_context (GTK_WIDGET (self));
+
+  /* Ensure the widget has the titlebar style class. */
+  gtk_style_context_add_class (context, "titlebar");
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]