[gnome-photos] main-toolbar: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-toolbar: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 28 Feb 2017 10:04:30 +0000 (UTC)
commit 4bd53f944aae9a92d008d093d1b583782eacad47
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Feb 28 10:59:02 2017 +0100
main-toolbar: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-main-toolbar.c | 5 -----
src/photos-main-toolbar.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 68803a9..a530b49 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -61,11 +61,6 @@ struct _PhotosMainToolbar
PhotosSelectionController *sel_cntrlr;
};
-struct _PhotosMainToolbarClass
-{
- GtkBoxClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-main-toolbar.h b/src/photos-main-toolbar.h
index dcce8cb..f5a0319 100644
--- a/src/photos-main-toolbar.h
+++ b/src/photos-main-toolbar.h
@@ -32,19 +32,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_MAIN_TOOLBAR (photos_main_toolbar_get_type ())
-
-#define PHOTOS_MAIN_TOOLBAR(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_MAIN_TOOLBAR, PhotosMainToolbar))
-
-#define PHOTOS_IS_MAIN_TOOLBAR(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_MAIN_TOOLBAR))
-
-typedef struct _PhotosMainToolbar PhotosMainToolbar;
-typedef struct _PhotosMainToolbarClass PhotosMainToolbarClass;
-
-GType photos_main_toolbar_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosMainToolbar, photos_main_toolbar, PHOTOS, MAIN_TOOLBAR, GtkBox);
GtkWidget *photos_main_toolbar_new (GtkOverlay *overlay);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]