1 | #include <gtk/gtk.h> |
---|---|
2 | |
3 | #include "exampleapp.h" |
4 | #include "exampleappwin.h" |
5 | |
6 | struct _ExampleAppWindow |
7 | { |
8 | GtkApplicationWindow parent; |
9 | }; |
10 | |
11 | G_DEFINE_TYPE(ExampleAppWindow, example_app_window, GTK_TYPE_APPLICATION_WINDOW); |
12 | |
13 | static void |
14 | example_app_window_init (ExampleAppWindow *win) |
15 | { |
16 | gtk_widget_init_template (GTK_WIDGET (win)); |
17 | } |
18 | |
19 | static void |
20 | example_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 | |
26 | ExampleAppWindow * |
27 | example_app_window_new (ExampleApp *app) |
28 | { |
29 | return g_object_new (EXAMPLE_APP_WINDOW_TYPE, first_property_name: "application", app, NULL); |
30 | } |
31 | |
32 | void |
33 | example_app_window_open (ExampleAppWindow *win, |
34 | GFile *file) |
35 | { |
36 | } |
37 |