mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
8087bb7a22
Add a new example to the getting started part of the docs. The focus of this example is on 'new stuff': GtkApplication, templates, settings, gmenu, gaction, GtkStack, GtkHeaderBar, GtkSearchBar, GtkRevealer, GtkListBox, GtkMenuButton, etc. It is being developed in several steps. Each step is put in a separate directory below examples/: application1, ..., application8. This is a little repetitive, but lets us use the code of all examples in the documentation.
16 lines
417 B
C
16 lines
417 B
C
#include <gtk/gtk.h>
|
|
#include <exampleapp.h>
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
/* Since this example is running uninstalled,
|
|
* we have to help it find its schema. This
|
|
* is *not* necessary in properly installed
|
|
* application.
|
|
*/
|
|
g_setenv ("GSETTINGS_SCHEMA_DIR", ".", FALSE);
|
|
|
|
return g_application_run (G_APPLICATION (example_app_new ()), argc, argv);
|
|
}
|