]> Dogcows Code - chaz/tint2/blob - src/tint2conf/theme_view.h
fixed issue 188
[chaz/tint2] / src / tint2conf / theme_view.h
1 #ifndef THEME_VIEW
2 #define THEME_VIEW
3
4 #include <gtk/gtk.h>
5
6 // Some boilerplate GObject type check and type cast macros.
7 // 'klass' is used here instead of 'class', because 'class' is a c++ keyword
8
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))
15
16 extern GtkListStore *g_store;
17
18 enum { COL_TEXT = 0, N_COLUMNS };
19
20 typedef struct _CustomCellRendererTheme CustomCellRendererTheme;
21 typedef struct _CustomCellRendererThemeClass CustomCellRendererThemeClass;
22
23
24 struct _CustomCellRendererTheme
25 {
26 GtkCellRenderer parent;
27
28 gchar *title;
29 gdouble progress;
30 };
31
32
33 struct _CustomCellRendererThemeClass
34 {
35 GtkCellRendererClass parent_class;
36 };
37
38
39 GtkWidget *create_view_and_model(void);
40
41 GType custom_cell_renderer_theme_get_type(void);
42
43 void on_changed(GtkWidget *widget, gpointer label);
44
45 void add_to_list(GtkWidget *list, const gchar *str);
46
47 #endif
48
This page took 0.039973 seconds and 4 git commands to generate.