[totem] backend: Make test UI use the dark theme
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Make test UI use the dark theme
- Date: Wed, 18 Apr 2012 16:08:43 +0000 (UTC)
commit f6a50593c9f394026826931300cc35e96d2ecd58
Author: Bastien Nocera <hadess hadess net>
Date: Tue Apr 17 19:27:40 2012 +0100
backend: Make test UI use the dark theme
src/backend/bvw-test.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bvw-test.c b/src/backend/bvw-test.c
index 0f6b3a5..d73a5fe 100644
--- a/src/backend/bvw-test.c
+++ b/src/backend/bvw-test.c
@@ -76,6 +76,7 @@ int main
GOptionGroup *baconoptiongroup;
GError *error = NULL;
GtkWidget *win, *bvw;
+ GtkSettings *gtk_settings;
#ifdef GDK_WINDOWING_X11
XInitThreads ();
@@ -102,6 +103,9 @@ int main
return 1;
}
+ gtk_settings = gtk_settings_get_default ();
+ g_object_set (G_OBJECT (gtk_settings), "gtk-application-prefer-dark-theme", TRUE, NULL);
+
win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (win), 500, 500);
g_signal_connect (G_OBJECT (win), "destroy",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]