...
  View open merge request
Commits (3)
......@@ -41,9 +41,12 @@ configure_file(
install_dir: sound_recorder_schemadir
)
install_data(
'application.css',
install_dir: sound_recoder_pkgdatadir
data_res = gnome.compile_resources(
'@0@.data'.format(application_id),
'@0@.data.gresource.xml'.format(application_id),
gresource_bundle: true,
install: true,
install_dir: sound_recoder_pkgdatadir,
)
subdir('appdata')
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/SoundRecorder">
<file alias="css/application.css">application.css</file>
</gresource>
</gresources>
......@@ -29,8 +29,8 @@ i18n = import('i18n')
po_dir = join_paths(meson.source_root(), 'po')
subdir('src')
subdir('data')
subdir('src')
subdir('po')
meson.add_install_script(
......
sound_recorder_sources = files(
'application.js',
'audioProfile.js',
'fileUtil.js',
'info.js',
'listview.js',
'main.js',
'mainWindow.js',
'play.js',
'preferences.js',
'record.js',
'util.js',
'waveform.js',
)
app_conf = configuration_data()
app_conf.set('prefix', sound_recorder_prefix)
app_conf.set('libdir', sound_recorder_libdir)
app_conf.set('PACKAGE_VERSION', meson.project_version())
app_conf.set('GJS', gjs_console)
configure_file(
app = configure_file(
input: 'org.gnome.SoundRecorder.in',
output: application_id,
install: true,
......@@ -27,12 +12,18 @@ configure_file(
configuration: app_conf
)
gnome.compile_resources(
application_id + '.src',
'org.gnome.SoundRecorder.src.gresource.xml',
source_dir: '.',
dependencies: sound_recorder_sources,
src_res = gnome.compile_resources(
'@0@.src'.format(application_id),
'@0@.src.gresource.xml'.format(application_id),
gresource_bundle: true,
install: true,
install_dir: sound_recoder_pkgdatadir
)
run_target('run',
command: app,
depends: [
data_res,
src_res,
]
)
......@@ -30,10 +30,8 @@ const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
function loadStyleSheet() {
let file = 'application.css';
let provider = new Gtk.CssProvider();
provider.load_from_path(GLib.build_filenamev([pkg.pkgdatadir,
file]));
var provider = new Gtk.CssProvider();
provider.load_from_resource('/org/gnome/SoundRecorder/css/application.css');
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
......