Skip to content
Snippets Groups Projects
Commit c98ee4b0 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

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
parent 62a74ed7
Branches
Tags
No related merge requests found
...@@ -66,6 +66,11 @@ sflphone_client_command_line_handler(G_GNUC_UNUSED GApplication *application, ...@@ -66,6 +66,11 @@ sflphone_client_command_line_handler(G_GNUC_UNUSED GApplication *application,
g_option_context_free(context); 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)) { if (!sflphone_init(&error, client)) {
g_warning("%s", error->message); g_warning("%s", error->message);
GtkWidget *dialog = gtk_message_dialog_new(NULL, GtkWidget *dialog = gtk_message_dialog_new(NULL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment