[gnome-photos] error-box: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] error-box: Use G_DECLARE_FINAL_TYPE
- Date: Mon, 29 Aug 2016 15:40:45 +0000 (UTC)
commit 37cc216c5660d49980a4d50851ff436bdf32e3ef
Author: Shivam Tripathi <shivam flash gmail com>
Date: Sat Aug 27 12:47:46 2016 +0530
error-box: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-error-box.c | 5 -----
src/photos-error-box.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-error-box.c b/src/photos-error-box.c
index a61d5ef..62178d1 100644
--- a/src/photos-error-box.c
+++ b/src/photos-error-box.c
@@ -38,11 +38,6 @@ struct _PhotosErrorBox
GtkWidget *secondary_label;
};
-struct _PhotosErrorBoxClass
-{
- GtkGridClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosErrorBox, photos_error_box, GTK_TYPE_GRID);
diff --git a/src/photos-error-box.h b/src/photos-error-box.h
index a72bb6d..fa68c23 100644
--- a/src/photos-error-box.h
+++ b/src/photos-error-box.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_ERROR_BOX (photos_error_box_get_type ())
-
-#define PHOTOS_ERROR_BOX(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_ERROR_BOX, PhotosErrorBox))
-
-#define PHOTOS_IS_ERROR_BOX(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_ERROR_BOX))
-
-typedef struct _PhotosErrorBox PhotosErrorBox;
-typedef struct _PhotosErrorBoxClass PhotosErrorBoxClass;
-
-GType photos_error_box_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosErrorBox, photos_error_box, PHOTOS, ERROR_BOX, GtkGrid)
GtkWidget *photos_error_box_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]