[goobox] preferer the dark theme
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goobox] preferer the dark theme
- Date: Thu, 2 Jun 2011 20:49:10 +0000 (UTC)
commit ec89722f526ebc04d2a608c9e5b981a69d486566
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jun 2 21:54:15 2011 +0200
preferer the dark theme
src/main.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 42bca76..1eef80e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -306,6 +306,7 @@ release_data (void)
static void
prepare_application (void)
{
+ GtkSettings *gtk_settings;
EggSMClient *client = NULL;
if (! required_gstreamer_plugins_available ()) {
@@ -325,6 +326,9 @@ prepare_application (void)
return;
}
+ gtk_settings = gtk_settings_get_default ();
+ g_object_set (G_OBJECT (gtk_settings), "gtk-application-prefer-dark-theme", TRUE, NULL);
+
application = unique_app_new_with_commands ("org.gnome.goobox", NULL,
"auto-play", COMMAND_PLAY,
"play-pause", COMMAND_PLAY_PAUSE,
@@ -396,7 +400,8 @@ prepare_application (void)
}
-int main (int argc, char **argv)
+int
+main (int argc, char **argv)
{
GOptionContext *context = NULL;
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]