]> git.0d.be Git - empathy.git/commitdiff
empathy-call: use dark theme
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 11 Oct 2011 14:55:03 +0000 (10:55 -0400)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 12 Oct 2011 14:40:38 +0000 (10:40 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=661464

src/empathy-call.c

index 1b643dec11980d73ebe69a9ad56d5c969e167afa..2ff49a81b7dbd541c1263146227ec053617694f1 100644 (file)
@@ -182,6 +182,7 @@ main (int argc,
 #endif
   GError *error = NULL;
   gint retval;
+  GtkSettings *gtk_settings;
 
   /* Init */
   g_thread_init (NULL);
@@ -221,6 +222,10 @@ main (int argc,
   gtk_window_set_default_icon_name ("empathy");
   textdomain (GETTEXT_PACKAGE);
 
+  gtk_settings = gtk_settings_get_default ();
+  g_object_set (G_OBJECT (gtk_settings), "gtk-application-prefer-dark-theme",
+      TRUE, NULL);
+
   app = gtk_application_new (EMPATHY_CALL_DBUS_NAME, G_APPLICATION_FLAGS_NONE);
   g_signal_connect (app, "activate", G_CALLBACK (activate_cb), NULL);