mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
22ae9d0884
G_DECLARE_FINAL_TYPE was introduced in glib 2.44. We shall use that now so that lots of boilerplate code can be reduced. https://bugzilla.gnome.org/show_bug.cgi?id=770278
34 lines
608 B
C
34 lines
608 B
C
#include <gtk/gtk.h>
|
|
|
|
#include "exampleapp.h"
|
|
#include "exampleappwin.h"
|
|
|
|
struct _ExampleAppWindow
|
|
{
|
|
GtkApplicationWindow parent;
|
|
};
|
|
|
|
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)
|
|
{
|
|
}
|