X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2Ftheme_view.h;h=807a7a062585eb1732366fbae63e00d89495f954;hb=a9e5183d2195a08988cd03fd10320b31e92fe0a2;hp=3556ed1ca6818d48d6e4623ca02a29a1a490f239;hpb=55eb2b64056f1fe6c15cabf1afc3e6d9aba56a11;p=chaz%2Ftint2 diff --git a/src/tint2conf/theme_view.h b/src/tint2conf/theme_view.h index 3556ed1..807a7a0 100644 --- a/src/tint2conf/theme_view.h +++ b/src/tint2conf/theme_view.h @@ -4,39 +4,11 @@ #include +enum { COL_THEME_FILE = 0, COL_SNAPSHOT, NB_COL, }; -#define CUSTOM_LIST_TYPE (custom_list_get_type()) -#define CUSTOM_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CUSTOM_LIST_TYPE, CustomList)) -#define CUSTOM_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_LIST_TYPE, CustomListClass)) -#define CUSTOM_IS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_LIST_TYPE)) -#define CUSTOM_IS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_LIST_TYPE)) -#define CUSTOM_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_LIST_TYPE, CustomListClass)) +GtkWidget *create_view(); -typedef struct _CustomList CustomList; -typedef struct _CustomListClass CustomListClass; - - -struct _CustomList -{ - GtkCellRenderer parent; - - gdouble progress; - gchar *nameTheme; - gchar *nameSnapshot; - GdkPixbuf *pixbuf; -}; - -struct _CustomListClass -{ - GtkCellRendererClass parent_class; -}; - - -// return the type CustomList -GType custom_list_get_type(); - -// return a new cell renderer instance -GtkCellRenderer *custom_list_new(); +void custom_list_append(const gchar *name); #endif