examples: use G_DECLARE_FINAL_TYPE in applications
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
This commit is contained in:
committed by
Matthias Clasen
parent
d817d525e6
commit
22ae9d0884
@ -8,11 +8,6 @@ struct _ExampleAppWindow
|
||||
GtkApplicationWindow parent;
|
||||
};
|
||||
|
||||
struct _ExampleAppWindowClass
|
||||
{
|
||||
GtkApplicationWindowClass parent_class;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE(ExampleAppWindow, example_app_window, GTK_TYPE_APPLICATION_WINDOW);
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user