[libgd/wip/rishi/modernize-gobject: 4/5] toggle-pixbuf-renderer: Use G_DECLARE_DERIVABLE_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/rishi/modernize-gobject: 4/5] toggle-pixbuf-renderer: Use G_DECLARE_DERIVABLE_TYPE
- Date: Sat, 6 Oct 2018 16:47:32 +0000 (UTC)
commit c4ad2799321370b946731e0eaf954096b24ac4b3
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Oct 6 18:09:28 2018 +0200
toggle-pixbuf-renderer: Use G_DECLARE_DERIVABLE_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=774709
libgd/gd-toggle-pixbuf-renderer.h | 34 +++++-----------------------------
1 file changed, 5 insertions(+), 29 deletions(-)
---
diff --git a/libgd/gd-toggle-pixbuf-renderer.h b/libgd/gd-toggle-pixbuf-renderer.h
index 2a7531a..81abf7d 100644
--- a/libgd/gd-toggle-pixbuf-renderer.h
+++ b/libgd/gd-toggle-pixbuf-renderer.h
@@ -29,43 +29,19 @@
G_BEGIN_DECLS
#define GD_TYPE_TOGGLE_PIXBUF_RENDERER gd_toggle_pixbuf_renderer_get_type()
+G_DECLARE_DERIVABLE_TYPE (GdTogglePixbufRenderer,
+ gd_toggle_pixbuf_renderer,
+ GD,
+ TOGGLE_PIXBUF_RENDERER,
+ GtkCellRendererPixbuf)
-#define GD_TOGGLE_PIXBUF_RENDERER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- GD_TYPE_TOGGLE_PIXBUF_RENDERER, GdTogglePixbufRenderer))
-
-#define GD_TOGGLE_PIXBUF_RENDERER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- GD_TYPE_TOGGLE_PIXBUF_RENDERER, GdTogglePixbufRendererClass))
-
-#define GD_IS_TOGGLE_PIXBUF_RENDERER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- GD_TYPE_TOGGLE_PIXBUF_RENDERER))
-
-#define GD_IS_TOGGLE_PIXBUF_RENDERER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- GD_TYPE_TOGGLE_PIXBUF_RENDERER))
-
-#define GD_TOGGLE_PIXBUF_RENDERER_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- GD_TYPE_TOGGLE_PIXBUF_RENDERER, GdTogglePixbufRendererClass))
-
-typedef struct _GdTogglePixbufRenderer GdTogglePixbufRenderer;
-typedef struct _GdTogglePixbufRendererClass GdTogglePixbufRendererClass;
typedef struct _GdTogglePixbufRendererPrivate GdTogglePixbufRendererPrivate;
-struct _GdTogglePixbufRenderer
-{
- GtkCellRendererPixbuf parent;
-};
-
struct _GdTogglePixbufRendererClass
{
GtkCellRendererPixbufClass parent_class;
};
-GType gd_toggle_pixbuf_renderer_get_type (void) G_GNUC_CONST;
-
GtkCellRenderer *gd_toggle_pixbuf_renderer_new (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]