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
@ -9,11 +9,6 @@ struct _ExampleApp
|
||||
GtkApplication parent;
|
||||
};
|
||||
|
||||
struct _ExampleAppClass
|
||||
{
|
||||
GtkApplicationClass parent_class;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE(ExampleApp, example_app, GTK_TYPE_APPLICATION);
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user