[gnome-music/wip/merge: 255/343] application: Load the css file from resources
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 255/343] application: Load the css file from resources
- Date: Thu, 25 Jul 2013 11:34:04 +0000 (UTC)
commit 4a1d3e79520fe033f5a520f2fa7c137598bab33c
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Thu Jul 18 18:33:49 2013 +0800
application: Load the css file from resources
gnomemusic/application.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/application.py b/gnomemusic/application.py
index 93c079a..f28bf29 100644
--- a/gnomemusic/application.py
+++ b/gnomemusic/application.py
@@ -9,8 +9,9 @@ class Application(Gtk.Application):
flags=Gio.ApplicationFlags.FLAGS_NONE)
GLib.set_application_name("Music")
+ cssProviderFile = Gio.File.new_for_uri('resource:///org/gnome/music/application.css')
cssProvider = Gtk.CssProvider()
- cssProvider.load_from_path('data/application.css')
+ cssProvider.load_from_file(cssProviderFile)
screen = Gdk.Screen.get_default()
styleContext = Gtk.StyleContext()
styleContext.add_provider_for_screen(screen, cssProvider,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]