Commit df423aa9 authored by Meg Ford's avatar Meg Ford

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.
parent 8eab4877
......@@ -6,3 +6,7 @@ License
=======
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
......
......@@ -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(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment