node-editor: Add things
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 May 2022 03:44:08 +0000 (23:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 May 2022 11:18:36 +0000 (07:18 -0400)
Add a desktop file and appdata.

demos/node-editor/meson.build
demos/node-editor/org.gtk.gtk4.NodeEditor.appdata.xml.in [new file with mode: 0644]
demos/node-editor/org.gtk.gtk4.NodeEditor.desktop [new file with mode: 0644]

index 7fe55612676a1f72a17058bec5b453cf70f99ee2..9b1e1a165356c996ae0de39fc86e0d00d2899ab0 100644 (file)
@@ -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 (file)
index 0000000..26ee6ff
--- /dev/null
@@ -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 (file)
index 0000000..75097dd
--- /dev/null
@@ -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;