Rename Stage 1
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
cb75e22abe
commit
32258f51d3
10 changed files with 23 additions and 27 deletions
11
meson.build
11
meson.build
|
@ -1,7 +1,7 @@
|
|||
project(
|
||||
'phosh-vala-plugins',
|
||||
'media-player',
|
||||
'vala',
|
||||
version: '0.48.0',
|
||||
version: '0.1.0',
|
||||
license: 'GPL-3.0-or-later',
|
||||
meson_version: '>= 1.2.0',
|
||||
default_options: ['warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11'],
|
||||
|
@ -16,7 +16,6 @@ add_project_arguments(['--vapidir', vapi_dir], language: 'vala')
|
|||
|
||||
gnome = import('gnome')
|
||||
i18n = import('i18n')
|
||||
pkgconfig = import('pkgconfig')
|
||||
|
||||
phosh_dep = dependency('phosh-plugins', version: '>= 0.45')
|
||||
lockscreen_plugins_dir = phosh_dep.get_variable('lockscreen_plugins_dir')
|
||||
|
@ -32,12 +31,12 @@ common_deps = [
|
|||
dependency('libnm'),
|
||||
]
|
||||
|
||||
common_c_args = ['-include', 'phosh-vala-plugins-config.h', '-DG_LOG_USE_STRUCTURED']
|
||||
common_c_args = ['-include', 'player-config.h', '-DG_LOG_USE_STRUCTURED']
|
||||
|
||||
conf = configuration_data()
|
||||
conf.set_quoted('G_LOG_DOMAIN', meson.project_name())
|
||||
configure_file(output: 'phosh-vala-plugins-config.h', configuration: conf)
|
||||
configure_file(output: 'player-config.h', configuration: conf)
|
||||
|
||||
subdir('po')
|
||||
# The example plugin
|
||||
subdir('vala-quick-setting')
|
||||
subdir('src')
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
namespace Extension {
|
||||
Gtk.CssProvider css;
|
||||
[ModuleInit]
|
||||
[CCode (cname = "g_io_phosh_plugin_vala_quick_setting_load")]
|
||||
[CCode (cname = "g_io_phosh_plugin_media_player_load")]
|
||||
public static void load (GLib.TypeModule module) {
|
||||
IOExtensionPoint.implement ("phosh-quick-setting-widget",
|
||||
typeof (QuickSetting),
|
||||
"vala-quick-setting",
|
||||
"media-player",
|
||||
10);
|
||||
css = new Gtk.CssProvider ();
|
||||
css.load_from_resource ("/mobi/phosh/plugins/vala-quick-setting/style.css");
|
||||
Gtk.StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), css, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||
}
|
||||
|
||||
[CCode (cname = "g_io_phosh_plugin_vala_quick_setting_unload")]
|
||||
[CCode (cname = "g_io_phosh_plugin_media_player_unload")]
|
||||
public static void unload (GLib.IOModule module) {
|
||||
Gtk.StyleContext.remove_provider_for_screen (Gdk.Screen.get_default (), css);
|
||||
}
|
||||
|
||||
[CCode (cname = "g_io_phosh_plugin_vala_quick_setting_query")]
|
||||
[CCode (cname = "g_io_phosh_plugin_media_player_query")]
|
||||
public static string[] query () {
|
||||
StrvBuilder builder = new StrvBuilder ();
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[Plugin]
|
||||
# Translators: This is an internal id, no need to translate it
|
||||
Id=@name@
|
||||
Name=Vala Quick Setting Example
|
||||
Name=Beautiful media player widget
|
||||
Types=quick-setting;
|
||||
Comment=A simple quick setting written in vala.
|
||||
Comment=Yep, it was written in vala
|
||||
Plugin=@plugins_dir@/libphosh-plugin-@name@.so
|
|
@ -1,5 +1,3 @@
|
|||
name = 'vala-quick-setting'
|
||||
|
||||
blueprints = custom_target(
|
||||
'blueprints',
|
||||
input: files(
|
||||
|
@ -15,24 +13,24 @@ blueprints = custom_target(
|
|||
],
|
||||
)
|
||||
|
||||
vala_quick_setting_resources = gnome.compile_resources(
|
||||
'phosh-plugin-vala-quick-setting-resources',
|
||||
resources = gnome.compile_resources(
|
||||
'media-player-resources',
|
||||
'extension.gresources.xml',
|
||||
c_name: 'phosh_plugin_vala_quick_setting',
|
||||
c_name: 'phosh_plugin_media_player',
|
||||
dependencies: blueprints,
|
||||
)
|
||||
|
||||
vala_quick_setting_plugin_sources = files(
|
||||
sources = files(
|
||||
'color.vala',
|
||||
'extension.vala',
|
||||
'player.vala',
|
||||
'qs.vala',
|
||||
)
|
||||
|
||||
phosh_vala_quick_setting_plugin = shared_module(
|
||||
'phosh-plugin-vala-quick-setting',
|
||||
vala_quick_setting_plugin_sources,
|
||||
vala_quick_setting_resources,
|
||||
shared_module(
|
||||
'phosh-plugin-media-player',
|
||||
sources,
|
||||
resources,
|
||||
dependencies: [common_deps],
|
||||
c_args: common_c_args,
|
||||
install: true,
|
||||
|
@ -40,16 +38,16 @@ phosh_vala_quick_setting_plugin = shared_module(
|
|||
)
|
||||
|
||||
pluginconf = configuration_data()
|
||||
pluginconf.set('name', name)
|
||||
pluginconf.set('name', meson.project_name())
|
||||
pluginconf.set('plugins_dir', quick_setting_plugins_dir)
|
||||
|
||||
i18n.merge_file(
|
||||
input: configure_file(
|
||||
input: name + '.desktop.in.in',
|
||||
output: name + '.desktop.in',
|
||||
input: meson.project_name() + '.desktop.in.in',
|
||||
output: meson.project_name() + '.desktop.in',
|
||||
configuration: pluginconf,
|
||||
),
|
||||
output: name + '.plugin',
|
||||
output: meson.project_name() + '.plugin',
|
||||
po_dir: join_paths(meson.project_source_root(), 'po'),
|
||||
install: true,
|
||||
install_dir: quick_setting_plugins_dir,
|
|
@ -1,5 +1,4 @@
|
|||
.nekoplayer {
|
||||
/* background: linear-gradient(to bottom, #ff7e5f 0%, #feb47b 100%); */
|
||||
border-radius: 10px;
|
||||
transition: all 0.1s ease-out;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue