Commit 3c5249ab authored by Umang Jain's avatar Umang Jain
Browse files

source: Use G_DECLARE_FINAL_TYPE

https://bugzilla.gnome.org/show_bug.cgi?id=763712
parent 4e9f95ec
......@@ -43,11 +43,6 @@ struct _PhotosSource
gchar *name;
};
struct _PhotosSourceClass
{
GObjectClass parent_class;
};
enum
{
PROP_0,
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment