[gnome-notes/development-profile: 5/8] application: Use the "devel" style class for the "development" profile




commit 61d0811cddc6733b9cf518bb797b5b9a461d16c3
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Oct 7 13:53:42 2020 +0200

    application: Use the "devel" style class for the "development" profile

 src/bjb-application.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/bjb-application.c b/src/bjb-application.c
index 20f9c02..2dc1ce0 100644
--- a/src/bjb-application.c
+++ b/src/bjb-application.c
@@ -142,6 +142,14 @@ bijiben_new_window_internal (BjbApplication *self,
 
   if (not_first_window)
     gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
+
+  if (g_strcmp0 (PROFILE, "") != 0)
+    {
+      GtkStyleContext *style_context;
+
+      style_context = gtk_widget_get_style_context (GTK_WIDGET (window));
+      gtk_style_context_add_class (style_context, "devel");
+    }
 }
 
 static gboolean


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