1#include <gtk/gtk.h>
2
3#include "exampleapp.h"
4#include "exampleappwin.h"
5
6struct _ExampleAppWindow
7{
8 GtkApplicationWindow parent;
9};
10
11G_DEFINE_TYPE(ExampleAppWindow, example_app_window, GTK_TYPE_APPLICATION_WINDOW);
12
13static void
14example_app_window_init (ExampleAppWindow *win)
15{
16 gtk_widget_init_template (GTK_WIDGET (win));
17}
18
19static void
20example_app_window_class_init (ExampleAppWindowClass *class)
21{
22 gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
23 resource_name: "/org/gtk/exampleapp/window.ui");
24}
25
26ExampleAppWindow *
27example_app_window_new (ExampleApp *app)
28{
29 return g_object_new (EXAMPLE_APP_WINDOW_TYPE, first_property_name: "application", app, NULL);
30}
31
32void
33example_app_window_open (ExampleAppWindow *win,
34 GFile *file)
35{
36}
37

source code of gtk/examples/application2/exampleappwin.c