summaryrefslogtreecommitdiff
path: root/examples/application7/exampleappprefs.h
diff options
context:
space:
mode:
authorMohammed Sadiq <sadiq@sadiqpk.org>2016-09-06 23:26:22 +0530
committerMatthias Clasen <mclasen@redhat.com>2016-09-10 09:01:08 -0400
commit22ae9d0884fffb61ee826ec450e8d62ad1cdb957 (patch)
tree079de6f4aabf11fe90a4b159fd486dfbc234ba95 /examples/application7/exampleappprefs.h
parentd817d525e6bbc4a5abeb304f037d30a29c6c76b4 (diff)
downloadgtk+-22ae9d0884fffb61ee826ec450e8d62ad1cdb957.tar.gz
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
Diffstat (limited to 'examples/application7/exampleappprefs.h')
-rw-r--r--examples/application7/exampleappprefs.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/application7/exampleappprefs.h b/examples/application7/exampleappprefs.h
index c684889adf..2f08819ffb 100644
--- a/examples/application7/exampleappprefs.h
+++ b/examples/application7/exampleappprefs.h
@@ -6,14 +6,9 @@
#define EXAMPLE_APP_PREFS_TYPE (example_app_prefs_get_type ())
-#define EXAMPLE_APP_PREFS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_APP_PREFS_TYPE, ExampleAppPrefs))
+G_DECLARE_FINAL_TYPE (ExampleAppPrefs, example_app_prefs, EXAMPLE, APP_PREFS, GtkDialog)
-typedef struct _ExampleAppPrefs ExampleAppPrefs;
-typedef struct _ExampleAppPrefsClass ExampleAppPrefsClass;
-
-
-GType example_app_prefs_get_type (void);
ExampleAppPrefs *example_app_prefs_new (ExampleAppWindow *win);