[gnome-photos] embed: Use G_DECLARE_FINAL_TYPE



commit 81c52b0d965132a0a8ba4810123611df7bdd825b
Author: Shivam Tripathi <shivam flash gmail com>
Date:   Fri Jul 1 21:18:21 2016 +0530

    embed: Use G_DECLARE_FINAL_TYPE
    
    Bump minimum GLib version to 2.44.0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 configure.ac       |    2 +-
 src/photos-embed.c |    5 -----
 src/photos-embed.h |   14 +-------------
 3 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9006133..bf6f766 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ CAIRO_MIN_VERSION=1.14.0
 GDATA_MIN_VERSION=0.15.2
 GEGL_MIN_VERSION=0.3.5
 GFBGRAPH_MIN_VERSION=0.2.1
-GLIB_MIN_VERSION=2.39.3
+GLIB_MIN_VERSION=2.44.0
 GOA_MIN_VERSION=3.8.0
 GRILO_MIN_VERSION=0.3.0
 GTK_MIN_VERSION=3.19.1
diff --git a/src/photos-embed.c b/src/photos-embed.c
index d128095..7fe4ca0 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -87,11 +87,6 @@ struct _PhotosEmbed
   guint load_show_id;
 };
 
-struct _PhotosEmbedClass
-{
-  GtkBoxClass parent_class;
-};
-
 
 G_DEFINE_TYPE (PhotosEmbed, photos_embed, GTK_TYPE_BOX);
 
diff --git a/src/photos-embed.h b/src/photos-embed.h
index 5c240dd..4311812 100644
--- a/src/photos-embed.h
+++ b/src/photos-embed.h
@@ -33,19 +33,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_EMBED (photos_embed_get_type ())
-
-#define PHOTOS_EMBED(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_EMBED, PhotosEmbed))
-
-#define PHOTOS_IS_EMBED(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_EMBED))
-
-typedef struct _PhotosEmbed      PhotosEmbed;
-typedef struct _PhotosEmbedClass PhotosEmbedClass;
-
-GType                  photos_embed_get_type               (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE(PhotosEmbed, photos_embed, PHOTOS, EMBED, GtkBox)
 
 GtkWidget             *photos_embed_new                    (void);
 


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