From 78d34c098e7c1b68a9063654e77b7107ec7832d2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 6 May 2022 23:44:08 -0400 Subject: [PATCH] node-editor: Add things Add a desktop file and appdata. --- demos/node-editor/meson.build | 22 +++++++--- .../org.gtk.gtk4.NodeEditor.appdata.xml.in | 40 +++++++++++++++++++ .../org.gtk.gtk4.NodeEditor.desktop | 9 +++++ 3 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 demos/node-editor/org.gtk.gtk4.NodeEditor.appdata.xml.in create mode 100644 demos/node-editor/org.gtk.gtk4.NodeEditor.desktop 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 @@ + + + org.gtk.gtk4.NodeEditor + org.gtk.gtk4.NodeEditor.desktop + CC0-1.0 + LGPL-2.1-or-later + GTK Node Editor + Program to edit render node files + +

+ GTK Node Editor is a simple application to show and edit + render node files. +

+

+ Render node files can e.g. be created by the GTK inspector. +

+
+ + + https://static.gnome.org/appdata/gtk4-node-editor/gtk4-node-editor.png + Node Editor + + + + HiDpiIcon + ModernToolkit + + https://www.gtk.org + gtk-4.0 + matthias.clasen_at_gmail.com + Matthias Clasen and others + + + + +

A new build of GTK.

+
+
+
+
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; -- 2.30.2