Add pushtigertree.
[doldaconnect.git] / clients / gtk2 / progressbar.h
1 /* Taken from the GTK TreeView tutorial on gtk.org. */
2
3 #ifndef _custom_cell_renderer_progressbar_included_
4 #define _custom_cell_renderer_progressbar_included_
5
6 #include <gtk/gtk.h>
7
8 /* Some boilerplate GObject type check and type cast macros.
9  *  'klass' is used here instead of 'class', because 'class'
10  *  is a c++ keyword */
11
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))
18
19 typedef struct _CustomCellRendererProgress CustomCellRendererProgress;
20 typedef struct _CustomCellRendererProgressClass CustomCellRendererProgressClass;
21
22 /* CustomCellRendererProgress: Our custom cell renderer
23  *   structure. Extend according to need */
24
25 struct _CustomCellRendererProgress
26 {
27     GtkCellRenderer   parent;
28     gdouble           progress;
29 };
30
31
32 struct _CustomCellRendererProgressClass
33 {
34     GtkCellRendererClass  parent_class;
35 };
36
37
38 GType                custom_cell_renderer_progress_get_type (void);
39
40 GtkCellRenderer     *custom_cell_renderer_progress_new (void);
41
42
43 #endif /* _custom_cell_renderer_progressbar_included_ */
44