[gnome-photos] source: Use G_DECLARE_FINAL_TYPE
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] source: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 6 Sep 2017 15:59:04 +0000 (UTC)
commit 3c5249ab98d2873f27cfe24355229736d60ffa6e
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 5 02:20:54 2017 +0530
source: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-source.c | 5 -----
src/photos-source.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-source.c b/src/photos-source.c
index d93b51b..a28435e 100644
--- a/src/photos-source.c
+++ b/src/photos-source.c
@@ -43,11 +43,6 @@ struct _PhotosSource
gchar *name;
};
-struct _PhotosSourceClass
-{
- GObjectClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-source.h b/src/photos-source.h
index c55dbd6..b037d49 100644
--- a/src/photos-source.h
+++ b/src/photos-source.h
@@ -31,23 +31,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_SOURCE (photos_source_get_type ())
-
-#define PHOTOS_SOURCE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_SOURCE, PhotosSource))
-
-#define PHOTOS_IS_SOURCE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_SOURCE))
+G_DECLARE_FINAL_TYPE (PhotosSource, photos_source, PHOTOS, SOURCE, GObject);
#define PHOTOS_SOURCE_STOCK_ALL "all"
#define PHOTOS_SOURCE_STOCK_LOCAL "local"
-typedef struct _PhotosSource PhotosSource;
-typedef struct _PhotosSourceClass PhotosSourceClass;
-
-GType photos_source_get_type (void) G_GNUC_CONST;
-
PhotosSource *photos_source_new (const gchar *id, const gchar *name, gboolean
builtin);
PhotosSource *photos_source_new_from_goa_object (GoaObject *object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]