gtk2/examples/application1
Matthias Clasen d2430c70bd Refresh the tutorial examples
Redo this series of examples from 2013, and adapt it to modern
way of doing things. The biggest differences are that we use
a headerbar right from the start, and don't mention the app
menu.

Fixes: #2730
2020-05-11 08:15:56 -04:00
..
exampleapp.c examples: use G_DECLARE_FINAL_TYPE in applications 2016-09-10 09:01:08 -04:00
exampleapp.h examples: use G_DECLARE_FINAL_TYPE in applications 2016-09-10 09:01:08 -04:00
exampleapp.png Getting started: Add icon and desktop file 2013-07-24 07:31:05 -04:00
exampleappwin.c examples: use G_DECLARE_FINAL_TYPE in applications 2016-09-10 09:01:08 -04:00
exampleappwin.h examples: use G_DECLARE_FINAL_TYPE in applications 2016-09-10 09:01:08 -04:00
main.c Make include order consistent in example applications 2014-11-28 23:57:16 -05:00
Makefile.example examples: Rename the pkg-config file for GTK 4 2019-02-05 10:27:57 +01:00
meson.build meson: examples: update 2017-05-03 15:10:53 +01:00
org.gtk.exampleapp.desktop examples: Use appliction id as desktop file base name 2018-08-02 11:10:21 +02:00
README Refresh the tutorial examples 2020-05-11 08:15:56 -04:00

Step 1: A trivial application

To make gnome-shell use the desktop file and icon for this example
while running it uninstalled, do the following:

mkdir -p ~/.local/share/applications
sed -e "s#@bindir@#$PWD#" org.gtk.exampleapp.desktop \
  > ~/.local/share/applications/org.gtk.exampleapp.desktop

mkdir -p ~/.local/share/icons/hicolor/48x48/apps
cp exampleapp.png ~/.local/share/icons/hicolor/48x48/apps