2010-03-28 22:50:26 +00:00
|
|
|
|
2009-11-17 10:03:39 +00:00
|
|
|
#ifndef THEME_VIEW
|
|
|
|
#define THEME_VIEW
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
|
2010-03-28 22:50:26 +00:00
|
|
|
#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))
|
|
|
|
|
|
|
|
typedef struct _CustomList CustomList;
|
|
|
|
typedef struct _CustomListClass CustomListClass;
|
|
|
|
|
|
|
|
|
|
|
|
struct _CustomList
|
|
|
|
{
|
|
|
|
GtkCellRenderer parent;
|
2009-11-17 10:03:39 +00:00
|
|
|
|
2010-03-28 22:50:26 +00:00
|
|
|
gdouble progress;
|
|
|
|
gchar *nameTheme;
|
|
|
|
gchar *nameSnapshot;
|
|
|
|
GdkPixbuf *pixbuf;
|
|
|
|
};
|
2009-11-17 10:03:39 +00:00
|
|
|
|
2010-03-28 22:50:26 +00:00
|
|
|
struct _CustomListClass
|
|
|
|
{
|
|
|
|
GtkCellRendererClass parent_class;
|
|
|
|
};
|
2009-11-17 10:03:39 +00:00
|
|
|
|
|
|
|
|
2010-03-28 22:50:26 +00:00
|
|
|
// return the type CustomList
|
|
|
|
GType custom_list_get_type();
|
|
|
|
|
|
|
|
// return a new cell renderer instance
|
|
|
|
GtkCellRenderer *custom_list_new();
|
2009-11-17 10:03:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-03-28 22:50:26 +00:00
|
|
|
|
|
|
|
|