[pitivi] pitivi: Set GTK_THEME to the theme used by pitivi
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [pitivi] pitivi: Set GTK_THEME to the theme used by pitivi
- Date: Tue,  7 Jun 2016 02:09:49 +0000 (UTC)
commit f901dd6359f8cbcf57357c128d6b2c2e19f79d05
Author: Thibault Saunier <tsaunier gnome org>
Date:   Mon Jun 6 22:09:05 2016 -0400
    pitivi: Set GTK_THEME to the theme used by pitivi
    
    This way applications we launch in a subprocess will be using the same theme as Pitivi itself
 pitivi/mainwindow.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index ce97eb1..ae42140 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -122,6 +122,9 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
     def __init__(self, app):
         gtksettings = Gtk.Settings.get_default()
         gtksettings.set_property("gtk-application-prefer-dark-theme", True)
+        theme = gtksettings.get_property("gtk-theme-name")
+        os.environ["GTK_THEME"] = theme + ":dark"
+
         # Pulseaudio "role"
         # (http://0pointer.de/blog/projects/tagging-audio.htm)
         os.environ["PULSE_PROP_media.role"] = "production"
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]