X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2Ftheme_view.h;h=dc1c71d9c9d08ab9dbee57272c8b57064b1e6ef1;hb=b0daed8dd52ebaa40fa993e5b9f23c823937c120;hp=3c64f690bace485da97efe6f5fcf97953311693d;hpb=520e5c33c07edac1b788e5e07bc227dd7ba5a474;p=chaz%2Ftint2 diff --git a/src/tint2conf/theme_view.h b/src/tint2conf/theme_view.h index 3c64f69..dc1c71d 100644 --- a/src/tint2conf/theme_view.h +++ b/src/tint2conf/theme_view.h @@ -1,48 +1,20 @@ + #ifndef THEME_VIEW #define THEME_VIEW #include -// Some boilerplate GObject type check and type cast macros. -// 'klass' is used here instead of 'class', because 'class' is a c++ keyword - -#define CUSTOM_TYPE_CELL_RENDERER_THEME (custom_cell_renderer_theme_get_type()) -#define CUSTOM_CELL_RENDERER_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CUSTOM_TYPE_CELL_RENDERER_THEME, CustomCellRendererTheme)) -#define CUSTOM_CELL_RENDERER_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_TYPE_CELL_RENDERER_THEME, CustomCellRendererThemeClass)) -#define CUSTOM_IS_CELL_PROGRESS_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_TYPE_CELL_RENDERER_THEME)) -#define CUSTOM_IS_CELL_PROGRESS_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_TYPE_CELL_RENDERER_THEME)) -#define CUSTOM_CELL_RENDERER_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_TYPE_CELL_RENDERER_THEME, CustomCellRendererThemeClass)) - +extern GtkWidget *g_theme_view; extern GtkListStore *g_store; +enum { COL_THEME_FILE = 0, COL_THEME_NAME, COL_SNAPSHOT, NB_COL, }; -enum { COL_TEXT = 0, N_COLUMNS }; - -typedef struct _CustomCellRendererTheme CustomCellRendererTheme; -typedef struct _CustomCellRendererThemeClass CustomCellRendererThemeClass; - - -struct _CustomCellRendererTheme -{ - GtkCellRenderer parent; +GtkWidget *create_view(); - gchar *title; - gdouble progress; -}; +void custom_list_append(const gchar *name); +gboolean update_snapshot(); -struct _CustomCellRendererThemeClass -{ - GtkCellRendererClass parent_class; -}; - - -GtkWidget *create_view_and_model(void); - -GType custom_cell_renderer_theme_get_type(void); - -void on_changed(GtkWidget *widget, gpointer label); +#endif -void add_to_list(GtkWidget *list, const gchar *str); -#endif