Changes
4 changed files (+75/-0)
-
-
@@ -18,6 +18,7 @@ SPDX-License-Identifier: Apache-2.0--> <gresources> <gresource prefix="/jp/pocka/plac/gtk-adwaita"> <file preprocess="xml-stripblanks">metainfo.xml</file> <file preprocess="xml-stripblanks">ui/browse.ui</file> <file preprocess="xml-stripblanks">ui/browse-item-navigation.ui</file> <file preprocess="xml-stripblanks">ui/browse-item-row.ui</file>
-
@@ -38,6 +39,7 @@ <file preprocess="xml-stripblanks">icons/scalable/actions/skip-backward-large-symbolic.svg</file><file preprocess="xml-stripblanks">icons/scalable/actions/skip-forward-large-symbolic.svg</file> <file preprocess="xml-stripblanks">icons/scalable/actions/sound-symbolic.svg</file> <file preprocess="xml-stripblanks">icons/scalable/actions/view-more-symbolic.svg</file> <file preprocess="xml-stripblanks" alias="icons/scalable/apps/jp.pocka.plac.gtk-adwaita.svg">app-icon.svg</file> <file preprocess="xml-stripblanks" alias="icons/hicolor/16x16/apps/jp.pocka.plac.gtk-adwaita.svg">app-icon.svg</file> <file preprocess="xml-stripblanks" alias="icons/hicolor/24x24/apps/jp.pocka.plac.gtk-adwaita.svg">app-icon.svg</file> <file preprocess="xml-stripblanks" alias="icons/hicolor/32x32/apps/jp.pocka.plac.gtk-adwaita.svg">app-icon.svg</file>
-
-
-
@@ -0,0 +1,16 @@<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2025 Shota FUJI SPDX-License-Identifier: CC0-1.0 --> <component type="desktop-application"> <id>jp.pocka.plac.gtk-adwaita</id> <metadata_license>CC0-1.0</metadata_license> <name>Plac</name> <summary>Control playback of Roon Server and browse library.</summary> <launchable type="desktop-id">jp.pocka.plac.gtk-adwaita</launchable> <url type="homepage">https://codeberg.org/pocka/plac</url> <url type="bugtracker">https://codeberg.org/pocka/plac/issues</url> <project_license>Apache-2.0</project_license> </component>
-
-
-
@@ -67,6 +67,12 @@ bind-flags="sync-create|bidirectional"/> </object> </child> <child type="end"> <object class="GtkMenuButton"> <property name="direction">none</property> <property name="menu-model">app_menu</property> </object> </child> </object> </child> <property name="content">
-
@@ -109,4 +115,19 @@ </child></object> </property> </template> <menu id="app_menu"> <section> <item> <attribute name="label">About Plac</attribute> <attribute name="action">app.about</attribute> </item> </section> <section> <item> <attribute name="label">Quit</attribute> <attribute name="action">app.quit</attribute> </item> </section> </menu> </interface>
-
-
-
@@ -16,6 +16,17 @@ // SPDX-License-Identifier: Apache-2.0namespace PlacGtkAdwaita { public class App : Adw.Application { private static GLib.ActionEntry[] app_entries = { GLib.ActionEntry() { name = "about", activate = on_about, }, GLib.ActionEntry() { name = "quit", activate = on_quit, }, }; public App(){ Object( application_id: "jp.pocka.plac.gtk-adwaita",
-
@@ -37,6 +48,31 @@ }public static int main(string[] args) { return new App().run(args); } private void on_about() { var dialog = new Adw.AboutDialog.from_appdata("/jp/pocka/plac/gtk-adwaita/metainfo.xml", null); // TODO: Inject these via build parameter (JSON or REUSE or whatever) dialog.copyright = "Copyright 2025 Shota FUJI"; dialog.version = "0.0.0"; dialog.add_legal_section("libsood", "Copyright 2025 Shota FUJI", APACHE_2_0, null); dialog.add_legal_section("libmoo", "Copyright 2025 Shota FUJI", APACHE_2_0, null); dialog.add_legal_section("websocket.zig", "Copyright (c) 2024 Karl Seguin.", MIT_X11, null); dialog.present(this.active_window); } private void on_quit() { this.quit(); } public override void startup() { base.startup(); var builder = new Gtk.Builder(); this.add_action_entries(app_entries, this); } }
-