1 /* Taken from the GTK TreeView tutorial on gtk.org. */
3 #ifndef _custom_cell_renderer_progressbar_included_
4 #define _custom_cell_renderer_progressbar_included_
8 /* Some boilerplate GObject type check and type cast macros.
9 * 'klass' is used here instead of 'class', because 'class'
12 #define CUSTOM_TYPE_CELL_RENDERER_PROGRESS (custom_cell_renderer_progress_get_type())
13 #define CUSTOM_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CUSTOM_TYPE_CELL_RENDERER_PROGRESS, CustomCellRendererProgress))
14 #define CUSTOM_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_TYPE_CELL_RENDERER_PROGRESS, CustomCellRendererProgressClass))
15 #define CUSTOM_IS_CELL_PROGRESS_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_TYPE_CELL_RENDERER_PROGRESS))
16 #define CUSTOM_IS_CELL_PROGRESS_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_TYPE_CELL_RENDERER_PROGRESS))
17 #define CUSTOM_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_TYPE_CELL_RENDERER_PROGRESS, CustomCellRendererProgressClass))
19 typedef struct _CustomCellRendererProgress CustomCellRendererProgress;
20 typedef struct _CustomCellRendererProgressClass CustomCellRendererProgressClass;
22 /* CustomCellRendererProgress: Our custom cell renderer
23 * structure. Extend according to need */
25 struct _CustomCellRendererProgress
27 GtkCellRenderer parent;
32 struct _CustomCellRendererProgressClass
34 GtkCellRendererClass parent_class;
38 GType custom_cell_renderer_progress_get_type (void);
40 GtkCellRenderer *custom_cell_renderer_progress_new (void);
43 #endif /* _custom_cell_renderer_progressbar_included_ */