[gnome-calendar] Forcing the app to use always the light theme.
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Forcing the app to use always the light theme.
- Date: Sat, 11 May 2013 15:33:39 +0000 (UTC)
commit 34d512f5ec7b89af01e178cbce41d70f375d7277
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Wed Jan 16 00:06:07 2013 -0500
Forcing the app to use always the light theme.
Formatting fixes.
src/gcal-application.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 63258fc..74c8d95 100644
--- a/src/gcal-application.c
+++ b/src/gcal-application.c
@@ -150,14 +150,23 @@ gcal_application_startup (GApplication *app)
if (priv->provider == NULL)
{
priv->provider = gtk_css_provider_new ();
- gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
- GTK_STYLE_PROVIDER (priv->provider),
- G_MAXUINT);
+ gtk_style_context_add_provider_for_screen (
+ gdk_screen_get_default (),
+ GTK_STYLE_PROVIDER (priv->provider),
+ G_MAXUINT);
error = NULL;
gtk_css_provider_load_from_path (priv->provider, CSS_FILE, &error);
if (error != NULL)
- g_warning ("Error loading stylesheet from file %s. %s", CSS_FILE, error->message);
+ {
+ g_warning ("Error loading stylesheet from file %s. %s",
+ CSS_FILE,
+ error->message);
+ }
+
+ g_object_set (gtk_settings_get_default (),
+ "gtk-application-prefer-dark-theme", FALSE,
+ NULL);
}
priv->manager = gcal_manager_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]