[gnome-photos] filterable: Use G_DECLARE_INTERFACE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] filterable: Use G_DECLARE_INTERFACE
- Date: Thu, 1 Dec 2016 09:59:59 +0000 (UTC)
commit d629308e815cbe1bb67bf60190cdbd80dd7bd3d9
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 23 13:28:36 2016 +0100
filterable: Use G_DECLARE_INTERFACE
src/photos-filterable.h | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/src/photos-filterable.h b/src/photos-filterable.h
index a347ed3..6be3285 100644
--- a/src/photos-filterable.h
+++ b/src/photos-filterable.h
@@ -30,21 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_FILTERABLE (photos_filterable_get_type ())
-
-#define PHOTOS_FILTERABLE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_FILTERABLE, PhotosFilterable))
-
-#define PHOTOS_IS_FILTERABLE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_FILTERABLE))
-
-#define PHOTOS_FILTERABLE_GET_IFACE(inst) \
- (G_TYPE_INSTANCE_GET_INTERFACE ((inst), \
- PHOTOS_TYPE_FILTERABLE, PhotosFilterableInterface))
-
-typedef struct _PhotosFilterable PhotosFilterable;
-typedef struct _PhotosFilterableInterface PhotosFilterableInterface;
+G_DECLARE_INTERFACE (PhotosFilterable, photos_filterable, PHOTOS, FILTERABLE, GObject);
struct _PhotosFilterableInterface
{
@@ -56,8 +42,6 @@ struct _PhotosFilterableInterface
gchar *(*get_where) (PhotosFilterable *self);
};
-GType photos_filterable_get_type (void) G_GNUC_CONST;
-
gboolean photos_filterable_get_builtin (PhotosFilterable *self);
gchar *photos_filterable_get_filter (PhotosFilterable *iface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]