[gnome-notes/development-profile: 2/4] application: Use the "devel" style class for the "development" profile
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes/development-profile: 2/4] application: Use the "devel" style class for the "development" profile
- Date: Wed, 7 Oct 2020 12:20:46 +0000 (UTC)
commit 9e2f77d66c2e88efff76a826c5d5b2d968b56199
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]