diff options
Diffstat (limited to 'examples/application9')
-rw-r--r-- | examples/application9/exampleapp.c | 5 | ||||
-rw-r--r-- | examples/application9/exampleapp.h | 7 | ||||
-rw-r--r-- | examples/application9/exampleappprefs.c | 5 | ||||
-rw-r--r-- | examples/application9/exampleappprefs.h | 7 | ||||
-rw-r--r-- | examples/application9/exampleappwin.c | 5 | ||||
-rw-r--r-- | examples/application9/exampleappwin.h | 7 |
6 files changed, 3 insertions, 33 deletions
diff --git a/examples/application9/exampleapp.c b/examples/application9/exampleapp.c index 66e85793f8..64a3ceb100 100644 --- a/examples/application9/exampleapp.c +++ b/examples/application9/exampleapp.c @@ -9,11 +9,6 @@ struct _ExampleApp GtkApplication parent; }; -struct _ExampleAppClass -{ - GtkApplicationClass parent_class; -}; - G_DEFINE_TYPE(ExampleApp, example_app, GTK_TYPE_APPLICATION); static void diff --git a/examples/application9/exampleapp.h b/examples/application9/exampleapp.h index 824049d699..51093791a3 100644 --- a/examples/application9/exampleapp.h +++ b/examples/application9/exampleapp.h @@ -5,14 +5,9 @@ #define EXAMPLE_APP_TYPE (example_app_get_type ()) -#define EXAMPLE_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_APP_TYPE, ExampleApp)) +G_DECLARE_FINAL_TYPE (ExampleApp, example_app, EXAMPLE, APP, GtkApplication) -typedef struct _ExampleApp ExampleApp; -typedef struct _ExampleAppClass ExampleAppClass; - - -GType example_app_get_type (void); ExampleApp *example_app_new (void); diff --git a/examples/application9/exampleappprefs.c b/examples/application9/exampleappprefs.c index 6a033817bd..9b3cc33586 100644 --- a/examples/application9/exampleappprefs.c +++ b/examples/application9/exampleappprefs.c @@ -9,11 +9,6 @@ struct _ExampleAppPrefs GtkDialog parent; }; -struct _ExampleAppPrefsClass -{ - GtkDialogClass parent_class; -}; - typedef struct _ExampleAppPrefsPrivate ExampleAppPrefsPrivate; struct _ExampleAppPrefsPrivate diff --git a/examples/application9/exampleappprefs.h b/examples/application9/exampleappprefs.h index c684889adf..2f08819ffb 100644 --- a/examples/application9/exampleappprefs.h +++ b/examples/application9/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); diff --git a/examples/application9/exampleappwin.c b/examples/application9/exampleappwin.c index d3103f97d3..15ceb1ef28 100644 --- a/examples/application9/exampleappwin.c +++ b/examples/application9/exampleappwin.c @@ -8,11 +8,6 @@ struct _ExampleAppWindow GtkApplicationWindow parent; }; -struct _ExampleAppWindowClass -{ - GtkApplicationWindowClass parent_class; -}; - typedef struct _ExampleAppWindowPrivate ExampleAppWindowPrivate; struct _ExampleAppWindowPrivate diff --git a/examples/application9/exampleappwin.h b/examples/application9/exampleappwin.h index ed4b34fcf5..786338d083 100644 --- a/examples/application9/exampleappwin.h +++ b/examples/application9/exampleappwin.h @@ -6,14 +6,9 @@ #define EXAMPLE_APP_WINDOW_TYPE (example_app_window_get_type ()) -#define EXAMPLE_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_APP_WINDOW_TYPE, ExampleAppWindow)) +G_DECLARE_FINAL_TYPE (ExampleAppWindow, example_app_window, EXAMPLE, APP_WINDOW, GtkApplicationWindow) -typedef struct _ExampleAppWindow ExampleAppWindow; -typedef struct _ExampleAppWindowClass ExampleAppWindowClass; - - -GType example_app_window_get_type (void); ExampleAppWindow *example_app_window_new (ExampleApp *app); void example_app_window_open (ExampleAppWindow *win, GFile *file); |