[gnome-photos] edit-palette-row: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] edit-palette-row: Use G_DECLARE_FINAL_TYPE
- Date: Fri, 18 Nov 2016 18:19:16 +0000 (UTC)
commit 52257c869cc522f6499afef83440642370652ff7
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Nov 18 16:23:39 2016 +0100
edit-palette-row: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-edit-palette-row.c | 5 -----
src/photos-edit-palette-row.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-edit-palette-row.c b/src/photos-edit-palette-row.c
index f64ad55..ff820c7 100644
--- a/src/photos-edit-palette-row.c
+++ b/src/photos-edit-palette-row.c
@@ -34,11 +34,6 @@ struct _PhotosEditPaletteRow
PhotosTool *tool;
};
-struct _PhotosEditPaletteRowClass
-{
- GtkListBoxRowClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-edit-palette-row.h b/src/photos-edit-palette-row.h
index aeaa3e3..c8c2b5f 100644
--- a/src/photos-edit-palette-row.h
+++ b/src/photos-edit-palette-row.h
@@ -29,19 +29,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_EDIT_PALETTE_ROW (photos_edit_palette_row_get_type ())
-
-#define PHOTOS_EDIT_PALETTE_ROW(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_EDIT_PALETTE_ROW, PhotosEditPaletteRow))
-
-#define PHOTOS_IS_EDIT_PALETTE_ROW(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_EDIT_PALETTE_ROW))
-
-typedef struct _PhotosEditPaletteRow PhotosEditPaletteRow;
-typedef struct _PhotosEditPaletteRowClass PhotosEditPaletteRowClass;
-
-GType photos_edit_palette_row_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosEditPaletteRow, photos_edit_palette_row, PHOTOS, EDIT_PALETTE_ROW,
GtkListBoxRow);
GtkWidget *photos_edit_palette_row_new (PhotosTool *tool, GtkSizeGroup
*size_group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]