[gnome-photos] print-setup: Use G_DECLARE_FINAL_TYPE
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] print-setup: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 27 Sep 2017 02:48:31 +0000 (UTC)
commit c84e5ec191da0bf502fdf19b9ea664265c264ce0
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 26 21:50:01 2017 +0530
print-setup: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-print-setup.c | 5 -----
src/photos-print-setup.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-print-setup.c b/src/photos-print-setup.c
index 5b7d102..a9fbff7 100644
--- a/src/photos-print-setup.c
+++ b/src/photos-print-setup.c
@@ -57,11 +57,6 @@ struct _PhotosPrintSetup
GtkUnit current_unit;
};
-struct _PhotosPrintSetupClass
-{
- GtkGridClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-print-setup.h b/src/photos-print-setup.h
index 1ab74e6..5a7f251 100644
--- a/src/photos-print-setup.h
+++ b/src/photos-print-setup.h
@@ -32,19 +32,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_PRINT_SETUP (photos_print_setup_get_type ())
-
-#define PHOTOS_PRINT_SETUP(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_PRINT_SETUP, PhotosPrintSetup))
-
-#define PHOTOS_IS_PRINT_SETUP(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_PRINT_SETUP))
-
-typedef struct _PhotosPrintSetup PhotosPrintSetup;
-typedef struct _PhotosPrintSetupClass PhotosPrintSetupClass;
-
-GType photos_print_setup_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPrintSetup, photos_print_setup, PHOTOS, PRINT_SETUP, GtkGrid);
GtkWidget *photos_print_setup_new (GeglNode *node, GtkPageSetup *page_setup);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]