[gnome-calendar/wip/christopherdavis/flatpak-dual-install: 253/254] flatpak: Add development styling to window
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/christopherdavis/flatpak-dual-install: 253/254] flatpak: Add development styling to window
- Date: Thu, 15 Aug 2019 00:30:00 +0000 (UTC)
commit ea938c6c4d7f5bb755d8d3b474fbf5b3ba36e6ee
Author: Christopher Davis <brainblasted disroot org>
Date: Sat Nov 3 21:17:22 2018 -0400
flatpak: Add development styling to window
Adds .devel style class to the main window for development
builds of Calendar.
Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/285
src/gui/gcal-window.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/gui/gcal-window.c b/src/gui/gcal-window.c
index a362e84e..ad340e57 100644
--- a/src/gui/gcal-window.c
+++ b/src/gui/gcal-window.c
@@ -21,6 +21,7 @@
#include "gcal-calendar-management-dialog.h"
#include "gcal-calendar-popover.h"
+#include "config.h"
#include "gcal-debug.h"
#include "gcal-edit-dialog.h"
#include "gcal-event-widget.h"
@@ -1124,6 +1125,14 @@ gcal_window_init (GcalWindow *self)
G_CALLBACK (dzl_shortcut_manager_handle_event),
NULL,
G_CONNECT_SWAPPED);
+ /* devel styling */
+ if (g_strcmp0 (PROFILE, "Devel") == 0)
+ {
+ GtkStyleContext *style_context;
+
+ style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
+ gtk_style_context_add_class (style_context, "devel");
+ }
/* setup accels */
app = g_application_get_default ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]