[eog] Request a dark theme variant
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Request a dark theme variant
- Date: Wed, 21 Jul 2010 21:31:01 +0000 (UTC)
commit e580844febda5f1cbffabc8412e7889250cb827c
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jul 13 07:51:38 2010 +0200
Request a dark theme variant
GTK+-3.0 introduces the possibility for applications to request
dark theme variants, aimed mainly at display centric applications
like movie players or viewers.
Eog obviously fits the bill, so it should follow Totem's lead ...
https://bugzilla.gnome.org/show_bug.cgi?id=624262
src/main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index b89e0dd..2956343 100644
--- a/src/main.c
+++ b/src/main.c
@@ -184,6 +184,7 @@ main (int argc, char **argv)
{
GError *error = NULL;
GOptionContext *ctx;
+ GtkSettings *settings;
g_setenv ("GSETTINGS_BACKEND", "gconf", FALSE);
@@ -249,6 +250,11 @@ main (int argc, char **argv)
gtk_window_set_default_icon_name ("eog");
g_set_application_name (_("Eye of GNOME Image Viewer"));
+ settings = gtk_settings_get_default ();
+ g_object_set (G_OBJECT (settings),
+ "gtk-application-prefer-dark-theme", TRUE,
+ NULL);
+
load_files ();
gdk_threads_enter ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]