mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +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.
20 lines
436 B
C
20 lines
436 B
C
#ifndef __EXAMPLEAPP_H
|
|
#define __EXAMPLEAPP_H
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
#define EXAMPLE_APP_TYPE (example_app_get_type ())
|
|
#define EXAMPLE_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_APP_TYPE, ExampleApp))
|
|
|
|
|
|
typedef struct ExampleApp ExampleApp;
|
|
typedef struct ExampleAppClass ExampleAppClass;
|
|
|
|
|
|
GType example_app_get_type (void);
|
|
ExampleApp *example_app_new (void);
|
|
|
|
|
|
#endif /* __EXAMPLEAPP_H */
|