[gnome-photos] preview-nav-buttons: Use G_DECLARE_FINAL_TYPE



commit 00200b4846145ec31b0b8f9c98ad132a708b63f7
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jan 4 11:57:35 2017 +0100

    preview-nav-buttons: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-preview-nav-buttons.c |    5 -----
 src/photos-preview-nav-buttons.h |   16 ++--------------
 2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/src/photos-preview-nav-buttons.c b/src/photos-preview-nav-buttons.c
index cf48971..01e7f88 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -57,11 +57,6 @@ struct _PhotosPreviewNavButtons
   guint motion_id;
 };
 
-struct _PhotosPreviewNavButtonsClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-preview-nav-buttons.h b/src/photos-preview-nav-buttons.h
index 5f0f5a6..986c7e8 100644
--- a/src/photos-preview-nav-buttons.h
+++ b/src/photos-preview-nav-buttons.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2013 – 2016 Red Hat, Inc.
+ * Copyright © 2013 – 2017 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -34,19 +34,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_PREVIEW_NAV_BUTTONS (photos_preview_nav_buttons_get_type ())
-
-#define PHOTOS_PREVIEW_NAV_BUTTONS(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_PREVIEW_NAV_BUTTONS, PhotosPreviewNavButtons))
-
-#define PHOTOS_IS_PREVIEW_NAV_BUTTONS(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_PREVIEW_NAV_BUTTONS))
-
-typedef struct _PhotosPreviewNavButtons      PhotosPreviewNavButtons;
-typedef struct _PhotosPreviewNavButtonsClass PhotosPreviewNavButtonsClass;
-
-GType                       photos_preview_nav_buttons_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPreviewNavButtons, photos_preview_nav_buttons, PHOTOS, PREVIEW_NAV_BUTTONS, 
GObject);
 
 PhotosPreviewNavButtons    *photos_preview_nav_buttons_new                (PhotosPreviewView *preview_view,
                                                                            GtkOverlay *overlay);


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