[gnome-sound-recorder] application.css: install in the src directory



commit df423aa9c647399c2cce1b0e1a4d64f833e6255f
Author: Meg Ford <meg387 gmail com>
Date:   Wed Oct 2 14:29:39 2013 -0500

    application.css: install in the src directory
    
    The import for the .css file was failing during application startup and causing the app to segfault. 
install the .css file in the src directory for now.

 README           |    4 ++++
 data/Makefile.am |    7 +++++--
 src/util.js      |    1 +
 3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/README b/README
index 94715c7..219bb2b 100644
--- a/README
+++ b/README
@@ -6,3 +6,7 @@ License
 
 =======
 
+
+
+
+
diff --git a/data/Makefile.am b/data/Makefile.am
index b03c019..35b48f6 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,4 +1,5 @@
-
+resourcedir = $(pkgdatadir)
+resource_DATA = org.gnome.gnome-sound-recorder.gresource application.css
 
 appsdir = $(datadir)/applications
 apps_DATA = org.gnome.SoundRecorder.desktop
@@ -22,14 +23,16 @@ org.gnome.SoundRecorder.desktop.in: org.gnome.SoundRecorder.desktop.in.in
 EXTRA_DIST = \
        org.gnome.SoundRecorder.desktop.in.in \
        $(gsettings_SCHEMAS) \
-       $(resource_files) \
+       application.css \
        $(NULL)
 
 CLEANFILES = \
        org.gnome.SoundRecorder.desktop.in \
+       org.gnome.gnome-sound-recorder.gresource \
        $(apps_DATA) \
        *.valid \
        gschemas.compiled \
+       application.css \
        $(NULL)
 
 # For uninstalled use
diff --git a/src/util.js b/src/util.js
index 96c3528..0c24a0b 100644
--- a/src/util.js
+++ b/src/util.js
@@ -28,6 +28,7 @@ function loadStyleSheet() {
     let file = 'application.css';
 
     let provider = new Gtk.CssProvider();
+    log(GLib.build_filenamev([pkg.pkgdatadir, file]));
     provider.load_from_path(GLib.build_filenamev([pkg.pkgdatadir,
                                                   file]));
     Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]