[buoh] Port BuohComicLoaderJob to G_DECLARE_FINAL_TYPE
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [buoh] Port BuohComicLoaderJob to G_DECLARE_FINAL_TYPE
- Date: Sun, 3 Feb 2019 15:40:56 +0000 (UTC)
commit 1c0c7d70f7bca8e32ea61e9a99fcb3625e14f5e2
Author: Jan Tojnar <jtojnar gmail com>
Date: Sat Feb 2 21:41:01 2019 +0100
Port BuohComicLoaderJob to G_DECLARE_FINAL_TYPE
src/buoh-comic-loader.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/buoh-comic-loader.c b/src/buoh-comic-loader.c
index 8de5d20..d37e2eb 100644
--- a/src/buoh-comic-loader.c
+++ b/src/buoh-comic-loader.c
@@ -24,12 +24,7 @@
/* BuohComicLoaderJob */
#define BUOH_TYPE_COMIC_LOADER_JOB (buoh_comic_loader_job_get_type())
-#define BUOH_COMIC_LOADER_JOB(object) (G_TYPE_CHECK_INSTANCE_CAST((object),
BUOH_TYPE_COMIC_LOADER_JOB, BuohComicLoaderJob))
-#define BUOH_COMIC_LOADER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), BUOH_TYPE_COMIC_LOADER_JOB,
BuohComicLoaderJobClass))
-#define BUOH_COMIC_LOADER_IS_JOB(object) (G_TYPE_CHECK_INSTANCE_TYPE((object),
BUOH_TYPE_COMIC_LOADER_JOB))
-
-typedef struct _BuohComicLoaderJob BuohComicLoaderJob;
-typedef struct _BuohComicLoaderJobClass BuohComicLoaderJobClass;
+G_DECLARE_FINAL_TYPE (BuohComicLoaderJob, buoh_comic_loader_job, BUOH, COMIC_LOADER_JOB, GObject)
struct _BuohComicLoaderJob {
GObject parent;
@@ -47,11 +42,6 @@ struct _BuohComicLoaderJob {
GError *error;
};
-struct _BuohComicLoaderJobClass {
- GObjectClass parent_class;
-};
-
-static GType buoh_comic_loader_job_get_type (void);
static void buoh_comic_loader_job_init (BuohComicLoaderJob *job);
static void buoh_comic_loader_job_class_init (BuohComicLoaderJobClass *klass);
static void buoh_comic_loader_job_finalize (GObject *object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]