[gtk/install-node-editor: 1/3] node-editor: Add things
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/install-node-editor: 1/3] node-editor: Add things
- Date: Sat, 7 May 2022 11:18:47 +0000 (UTC)
commit 78d34c098e7c1b68a9063654e77b7107ec7832d2
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 6 23:44:08 2022 -0400
node-editor: Add things
Add a desktop file and appdata.
demos/node-editor/meson.build | 22 +++++++++---
.../org.gtk.gtk4.NodeEditor.appdata.xml.in | 40 ++++++++++++++++++++++
demos/node-editor/org.gtk.gtk4.NodeEditor.desktop | 9 +++++
3 files changed, 66 insertions(+), 5 deletions(-)
---
diff --git a/demos/node-editor/meson.build b/demos/node-editor/meson.build
index 7fe5561267..9b1e1a1653 100644
--- a/demos/node-editor/meson.build
+++ b/demos/node-editor/meson.build
@@ -22,9 +22,21 @@ executable('gtk4-node-editor',
install: false,
)
-# icons, don't install them until we decide to install gtk4-node-editor
-#icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
+# icons
+icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
+
+foreach size: ['scalable', 'symbolic']
+ install_subdir('data/' + size, install_dir: icontheme_dir)
+endforeach
+
+# desktop file
+install_data('org.gtk.gtk4.NodeEditor.desktop', install_dir: gtk_applicationsdir)
+
+# appdata
+configure_file(
+ input: 'org.gtk.gtk4.NodeEditor.appdata.xml.in',
+ output: 'org.gtk.gtk4.NodeEditor.appdata.xml',
+ configuration: appdata_config,
+ install_dir: gtk_appdatadir
+)
-#foreach size: ['scalable', 'symbolic']
-# install_subdir('data/' + size, install_dir: icontheme_dir)
-#endforeach
diff --git a/demos/node-editor/org.gtk.gtk4.NodeEditor.appdata.xml.in
b/demos/node-editor/org.gtk.gtk4.NodeEditor.appdata.xml.in
new file mode 100644
index 0000000000..26ee6ff4d9
--- /dev/null
+++ b/demos/node-editor/org.gtk.gtk4.NodeEditor.appdata.xml.in
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>org.gtk.gtk4.NodeEditor</id>
+ <launchable type="desktop-id">org.gtk.gtk4.NodeEditor.desktop</launchable>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LGPL-2.1-or-later</project_license>
+ <name>GTK Node Editor</name>
+ <summary>Program to edit render node files</summary>
+ <description>
+ <p>
+ GTK Node Editor is a simple application to show and edit
+ render node files.
+ </p>
+ <p>
+ Render node files can e.g. be created by the GTK inspector.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-node-editor/gtk4-node-editor.png</image>
+ <caption>Node Editor</caption>
+ </screenshot>
+ </screenshots>
+ <kudos>
+ <kudo>HiDpiIcon</kudo>
+ <kudo>ModernToolkit</kudo>
+ </kudos>
+ <url type="homepage">https://www.gtk.org</url>
+ <translation type="gettext">gtk-4.0</translation>
+ <update_contact>matthias.clasen_at_gmail.com</update_contact>
+ <developer_name>Matthias Clasen and others</developer_name>
+ <content_rating type="oars-1.1"/>
+ <releases>
+ <release version="@BUILD_VERSION@">
+ <description>
+ <p>A new build of GTK.</p>
+ </description>
+ </release>
+ </releases>
+</component>
diff --git a/demos/node-editor/org.gtk.gtk4.NodeEditor.desktop
b/demos/node-editor/org.gtk.gtk4.NodeEditor.desktop
new file mode 100644
index 0000000000..75097ddf5e
--- /dev/null
+++ b/demos/node-editor/org.gtk.gtk4.NodeEditor.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Node Editor
+Comment=An application that edits render nodes
+Exec=gtk4-node-editor
+Icon=org.gtk.gtk4.NodeEditor
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Development;GTK;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]