[libgd] main-view: Use G_DECLARE_DERIVABLE_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] main-view: Use G_DECLARE_DERIVABLE_TYPE
- Date: Mon, 21 Nov 2016 14:33:27 +0000 (UTC)
commit da93327e76ab36bc131630067340baac70667f7d
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Nov 19 11:57:26 2016 +0100
main-view: Use G_DECLARE_DERIVABLE_TYPE
This bumps our GLib requirement to 2.44.
https://bugzilla.gnome.org/show_bug.cgi?id=774709
libgd/gd-main-view.h | 29 +----------------------------
1 files changed, 1 insertions(+), 28 deletions(-)
---
diff --git a/libgd/gd-main-view.h b/libgd/gd-main-view.h
index 1fcf6ac..1e015e1 100644
--- a/libgd/gd-main-view.h
+++ b/libgd/gd-main-view.h
@@ -29,29 +29,8 @@
G_BEGIN_DECLS
#define GD_TYPE_MAIN_VIEW gd_main_view_get_type()
+G_DECLARE_DERIVABLE_TYPE (GdMainView, gd_main_view, GD, MAIN_VIEW, GtkScrolledWindow)
-#define GD_MAIN_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- GD_TYPE_MAIN_VIEW, GdMainView))
-
-#define GD_MAIN_VIEW_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- GD_TYPE_MAIN_VIEW, GdMainViewIface))
-
-#define GD_IS_MAIN_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- GD_TYPE_MAIN_VIEW))
-
-#define GD_IS_MAIN_VIEW_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- GD_TYPE_MAIN_VIEW))
-
-#define GD_MAIN_VIEW_GET_IFACE(obj) \
- (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
- GD_TYPE_MAIN_VIEW, GdMainViewIface))
-
-typedef struct _GdMainView GdMainView;
-typedef struct _GdMainViewClass GdMainViewClass;
typedef struct _GdMainViewPrivate GdMainViewPrivate;
typedef enum {
@@ -59,16 +38,10 @@ typedef enum {
GD_MAIN_VIEW_LIST
} GdMainViewType;
-struct _GdMainView {
- GtkScrolledWindow parent;
-};
-
struct _GdMainViewClass {
GtkScrolledWindowClass parent_class;
};
-GType gd_main_view_get_type (void) G_GNUC_CONST;
-
GdMainView * gd_main_view_new (GdMainViewType type);
void gd_main_view_set_view_type (GdMainView *self,
GdMainViewType type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]