[gnome-photos] application: Prefer the dark theme to reduce light pollution



commit 7be241ee98cde6f3e0a3dd47bb560b51f1dae764
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Jul 29 22:54:53 2012 +0200

    application: Prefer the dark theme to reduce light pollution

 src/photos-application.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index b654f00..118bc00 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -98,6 +98,7 @@ photos_application_startup (GApplication *application)
   GMenu *doc_actions;
   GMenu *menu;
   GSimpleAction *action;
+  GtkSettings *settings;
 
   G_APPLICATION_CLASS (photos_application_parent_class)
     ->startup (application);
@@ -108,6 +109,9 @@ photos_application_startup (GApplication *application)
       return;
     }
 
+  settings = gtk_settings_get_default ();
+  g_object_set (settings, "gtk-application-prefer-dark-theme", TRUE, NULL);
+
   priv->mode_cntrlr = photos_mode_controller_new ();
 
   action = g_simple_action_new ("about", NULL);



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