6 // Some boilerplate GObject type check and type cast macros.
7 // 'klass' is used here instead of 'class', because 'class' is a c++ keyword
9 #define CUSTOM_TYPE_CELL_RENDERER_THEME (custom_cell_renderer_theme_get_type())
10 #define CUSTOM_CELL_RENDERER_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CUSTOM_TYPE_CELL_RENDERER_THEME, CustomCellRendererTheme))
11 #define CUSTOM_CELL_RENDERER_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_TYPE_CELL_RENDERER_THEME, CustomCellRendererThemeClass))
12 #define CUSTOM_IS_CELL_PROGRESS_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_TYPE_CELL_RENDERER_THEME))
13 #define CUSTOM_IS_CELL_PROGRESS_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_TYPE_CELL_RENDERER_THEME))
14 #define CUSTOM_CELL_RENDERER_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_TYPE_CELL_RENDERER_THEME, CustomCellRendererThemeClass))
16 extern GtkListStore
*g_store
;
18 enum { COL_TEXT
= 0, N_COLUMNS
};
20 typedef struct _CustomCellRendererTheme CustomCellRendererTheme
;
21 typedef struct _CustomCellRendererThemeClass CustomCellRendererThemeClass
;
24 struct _CustomCellRendererTheme
26 GtkCellRenderer parent
;
33 struct _CustomCellRendererThemeClass
35 GtkCellRendererClass parent_class
;
39 GtkWidget
*create_view_and_model(void);
41 GType
custom_cell_renderer_theme_get_type(void);
43 void on_changed(GtkWidget
*widget
, gpointer label
);
45 void add_to_list(GtkWidget
*list
, const gchar
*str
);