[gnome-text-editor] dialog: add .devel to various dialogs



commit 7b8d6a3ee63a629ec5d780ebbf08922f84fb953c
Author: Christian Hergert <chergert redhat com>
Date:   Wed Dec 1 12:30:59 2021 -0800

    dialog: add .devel to various dialogs

 src/editor-application-actions.c | 1 +
 src/editor-language-dialog.c     | 4 ++++
 src/editor-preferences-dialog.c  | 4 ++++
 3 files changed, 9 insertions(+)
---
diff --git a/src/editor-application-actions.c b/src/editor-application-actions.c
index ac9b096..0bfec22 100644
--- a/src/editor-application-actions.c
+++ b/src/editor-application-actions.c
@@ -89,6 +89,7 @@ editor_application_actions_about_cb (GSimpleAction *action,
   gtk_about_dialog_set_artists (dialog, artists);
 #if DEVELOPMENT_BUILD
   gtk_about_dialog_set_version (dialog, PACKAGE_VERSION" (" EDITOR_BUILD_IDENTIFIER ")");
+  gtk_widget_add_css_class (GTK_WIDGET (dialog), "devel");
 #else
   gtk_about_dialog_set_version (dialog, PACKAGE_VERSION);
 #endif
diff --git a/src/editor-language-dialog.c b/src/editor-language-dialog.c
index 35389d7..eb94663 100644
--- a/src/editor-language-dialog.c
+++ b/src/editor-language-dialog.c
@@ -296,6 +296,10 @@ editor_language_dialog_init (EditorLanguageDialog *self)
 {
   gtk_widget_init_template (GTK_WIDGET (self));
 
+#if DEVELOPMENT_BUILD
+  gtk_widget_add_css_class (GTK_WIDGET (self), "devel");
+#endif
+
   gtk_window_set_default_size (GTK_WINDOW (self), 500, -1);
   gtk_window_set_resizable (GTK_WINDOW (self), FALSE);
 
diff --git a/src/editor-preferences-dialog.c b/src/editor-preferences-dialog.c
index 8932530..dedcb3d 100644
--- a/src/editor-preferences-dialog.c
+++ b/src/editor-preferences-dialog.c
@@ -272,6 +272,10 @@ editor_preferences_dialog_init (EditorPreferencesDialog *self)
 
   gtk_widget_init_template (GTK_WIDGET (self));
 
+#if DEVELOPMENT_BUILD
+  gtk_widget_add_css_class (GTK_WIDGET (self), "devel");
+#endif
+
   g_object_set (self,
                 "application", g_application_get_default (),
                 NULL);


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