[cheese] Prefer a dark GTK+ theme, bug 660628



commit a70c15c23536c9cde0b3b32e63bdf1beb17ba1bd
Author: David King <amigadave amigadave com>
Date:   Tue Oct 4 10:49:54 2011 +0200

    Prefer a dark GTK+ theme, bug 660628

 src/cheese-main.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
index cf9bb42..0d1cd53 100644
--- a/src/cheese-main.vala
+++ b/src/cheese-main.vala
@@ -52,6 +52,11 @@ public class Cheese.Main : Gtk.Application
       main_window.present ();
     else
     {
+      // Prefer a dark GTK+ theme, bug 660628.
+      var gtk_settings = Gtk.Settings.get_default ();
+      if (gtk_settings != null)
+        gtk_settings.gtk_application_prefer_dark_theme = true;
+
       main_window = new Cheese.MainWindow ();
 
       Environment.set_application_name (_("Cheese"));



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