forked from AuroraMiddleware/gtk
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.
36 lines
701 B
C
36 lines
701 B
C
#include "exampleapp.h"
|
|
#include "exampleappwin.h"
|
|
#include <gtk/gtk.h>
|
|
|
|
struct ExampleAppWindow {
|
|
GtkApplicationWindow parent;
|
|
};
|
|
|
|
struct ExampleAppWindowClass {
|
|
GtkApplicationWindowClass parent_class;
|
|
};
|
|
|
|
G_DEFINE_TYPE(ExampleAppWindow, example_app_window, GTK_TYPE_APPLICATION_WINDOW);
|
|
|
|
static void
|
|
example_app_window_init (ExampleAppWindow *app)
|
|
{
|
|
}
|
|
|
|
static void
|
|
example_app_window_class_init (ExampleAppWindowClass *class)
|
|
{
|
|
}
|
|
|
|
ExampleAppWindow *
|
|
example_app_window_new (ExampleApp *app)
|
|
{
|
|
return g_object_new (EXAMPLE_APP_WINDOW_TYPE, "application", app, NULL);
|
|
}
|
|
|
|
void
|
|
example_app_window_open (ExampleAppWindow *win,
|
|
GFile *file)
|
|
{
|
|
}
|