[gnome-photos] main-window: Use G_DECLARE_FINAL_TYPE



commit 488e4b41826f176f154a6fbb868b8da33edbf53b
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Feb 28 10:59:34 2017 +0100

    main-window: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-main-window.c |    5 -----
 src/photos-main-window.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index 9835721..44fd1f9 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -52,11 +52,6 @@ struct _PhotosMainWindow
   guint configure_id;
 };
 
-struct _PhotosMainWindowClass
-{
-  GtkApplicationWindowClass parent_class;
-};
-
 
 G_DEFINE_TYPE (PhotosMainWindow, photos_main_window, GTK_TYPE_APPLICATION_WINDOW);
 
diff --git a/src/photos-main-window.h b/src/photos-main-window.h
index 838c2a3..db54b1d 100644
--- a/src/photos-main-window.h
+++ b/src/photos-main-window.h
@@ -30,19 +30,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_MAIN_WINDOW (photos_main_window_get_type ())
-
-#define PHOTOS_MAIN_WINDOW(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_MAIN_WINDOW, PhotosMainWindow))
-
-#define PHOTOS_IS_MAIN_WINDOW(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_MAIN_WINDOW))
-
-typedef struct _PhotosMainWindow      PhotosMainWindow;
-typedef struct _PhotosMainWindowClass PhotosMainWindowClass;
-
-GType                  photos_main_window_get_type               (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosMainWindow, photos_main_window, PHOTOS, MAIN_WINDOW, GtkApplicationWindow);
 
 GtkWidget             *photos_main_window_new                    (GtkApplication *application);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]