[totem] browser-plugin: Use dark theme by default
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] browser-plugin: Use dark theme by default
- Date: Mon, 11 Jul 2011 15:23:28 +0000 (UTC)
commit 75dbfb13bbee0bc6097a1919692f4f007fb4602f
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 11 14:55:39 2011 +0100
browser-plugin: Use dark theme by default
browser-plugin/totem-plugin-viewer.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 2fd86b8..a390382 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -2257,6 +2257,7 @@ int main (int argc, char **argv)
guint res;
GError *e = NULL;
char svcname[256];
+ GtkSettings *gtk_settings;
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -2376,6 +2377,9 @@ int main (int argc, char **argv)
exit (1);
}
+ gtk_settings = gtk_settings_get_default ();
+ g_object_set (G_OBJECT (gtk_settings), "gtk-application-prefer-dark-theme", TRUE, NULL);
+
emb = g_object_new (TOTEM_TYPE_EMBEDDED, NULL);
emb->state = TOTEM_STATE_INVALID;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]