From c98ee4b0a23999a4c18554d5bd1aafd4945bd912 Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Thu, 10 Jul 2014 16:28:26 -0400
Subject: [PATCH] gnome: avoid clashing with dark theme

This is a workaround (similar to what Totem does) until we fix
our custom icon loading/theming.

Refs #51008

Change-Id: I9f0477fa60677952b11a4a84ecf671043ab35533
---
 gnome/src/sflphone_client.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnome/src/sflphone_client.c b/gnome/src/sflphone_client.c
index 07d29a5a45..8fc9001039 100644
--- a/gnome/src/sflphone_client.c
+++ b/gnome/src/sflphone_client.c
@@ -66,6 +66,11 @@ sflphone_client_command_line_handler(G_GNUC_UNUSED GApplication *application,
 
     g_option_context_free(context);
 
+    /* Override theme since we don't have appropriate icons for a dark them (yet) */
+	GtkSettings *gtk_settings = gtk_settings_get_default();
+	g_object_set(G_OBJECT(gtk_settings), "gtk-application-prefer-dark-theme",
+                 FALSE, NULL);
+
     if (!sflphone_init(&error, client)) {
         g_warning("%s", error->message);
         GtkWidget *dialog = gtk_message_dialog_new(NULL,
-- 
GitLab