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
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
0d6b2327e0
commit
0aa9e42016
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "gcal-calendar-management-dialog.h"
|
#include "gcal-calendar-management-dialog.h"
|
||||||
#include "gcal-calendar-popover.h"
|
#include "gcal-calendar-popover.h"
|
||||||
|
#include "config.h"
|
||||||
#include "gcal-debug.h"
|
#include "gcal-debug.h"
|
||||||
#include "gcal-edit-dialog.h"
|
#include "gcal-edit-dialog.h"
|
||||||
#include "gcal-event-widget.h"
|
#include "gcal-event-widget.h"
|
||||||
@@ -1122,6 +1123,14 @@ gcal_window_init (GcalWindow *self)
|
|||||||
G_CALLBACK (dzl_shortcut_manager_handle_event),
|
G_CALLBACK (dzl_shortcut_manager_handle_event),
|
||||||
NULL,
|
NULL,
|
||||||
G_CONNECT_SWAPPED);
|
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 */
|
/* setup accels */
|
||||||
app = g_application_get_default ();
|
app = g_application_get_default ();
|
||||||
|
|||||||
Reference in New Issue
Block a user