summaryrefslogtreecommitdiffstats
path: root/c-gnome-app.c
Commit message (Collapse)AuthorAgeFilesLines
* Add skeleton build systemDavid King2015-05-071-1/+0
| | | | | | | | Run "autoreconf --force --install" to create the build system, then run "./configure" to check for necessary dependencies, such as make. Finally, run "make install" to install (into the default prefix). Examine the output from "./configure --help" to learn how to change the prefix and other installation settings.
* Add a button and link it to the hello-world actionDavid King2015-05-071-0/+6
| | | | | | Create a button, and link it to the "app.hello-world" action, so that clicking it does the same as selecting the menu item or pressing the keyboard shortcut for that action.
* Add an application menuDavid King2015-05-071-3/+21
| | | | | | Create a menu model, and add menu items into the model. Link the menu items to the "hello-world" and "quit" actions, which were added to the application. Set the menu to be the application menu.
* Add actions and handlers for hello world and quitDavid King2015-05-071-2/+42
| | | | | | | Create two actions, "hello-world" and "quit", and add them to the application (which is an implementation of GActionMap). Connect the "activate" signal of the actions to handlers. Add an accelerator for each action, so that they can be triggered with a keyboard shortcut.
* Terminate the application when closing the windowDavid King2015-05-071-6/+17
| | | | | Use GtkApplication to manage the application lifecycle, and quit the application when the window is closed.
* Add skeleton app, which shows an empty windowDavid King2015-05-071-0/+17
The application shows a window and runs forever. Closing the window does not stop the application, so it must be killed externally.