summaryrefslogtreecommitdiff
path: root/examples/application2/exampleappwin.c
blob: 7adf218120c827ad5be07a4311331a68e427830a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#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 *win)
{
        gtk_widget_init_template (GTK_WIDGET (win));
}

static void
example_app_window_class_init (ExampleAppWindowClass *class)
{
        gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
                                                     "/org/gtk/exampleapp/window.ui");
}

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)
{
}