[gnome-photos] dropdown: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] dropdown: Use G_DECLARE_FINAL_TYPE
- Date: Sat, 9 Jul 2016 14:10:20 +0000 (UTC)
commit aa59b95e368619a004bd35a9d43680d21cdfabea
Author: Shivam Tripathi <shivam flash gmail com>
Date: Fri Jul 8 00:58:47 2016 +0530
dropdown: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-dropdown.c | 5 -----
src/photos-dropdown.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-dropdown.c b/src/photos-dropdown.c
index 0891031..e396ed9 100644
--- a/src/photos-dropdown.c
+++ b/src/photos-dropdown.c
@@ -48,11 +48,6 @@ struct _PhotosDropdown
PhotosBaseManager *src_mngr;
};
-struct _PhotosDropdownClass
-{
- GtkPopoverClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosDropdown, photos_dropdown, GTK_TYPE_POPOVER);
diff --git a/src/photos-dropdown.h b/src/photos-dropdown.h
index fc16e8b..b8d7171 100644
--- a/src/photos-dropdown.h
+++ b/src/photos-dropdown.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_DROPDOWN (photos_dropdown_get_type ())
-
-#define PHOTOS_DROPDOWN(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_DROPDOWN, PhotosDropdown))
-
-#define PHOTOS_IS_DROPDOWN(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_DROPDOWN))
-
-typedef struct _PhotosDropdown PhotosDropdown;
-typedef struct _PhotosDropdownClass PhotosDropdownClass;
-
-GType photos_dropdown_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosDropdown, photos_dropdown, PHOTOS, DROPDOWN, GtkPopover)
GtkWidget *photos_dropdown_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]