00001 #ifndef GTASK_CELL_RENDERER_BASIC_H 00002 #define GTASK_CELL_RENDERER_BASIC_H 00003 00004 #include <gtk/gtkcellrenderer.h> 00005 00006 #include <gtask/gtask-generic-task.h> 00007 00010 /* @{ */ 00011 00012 typedef struct _GTaskCellRendererBasic GTaskCellRendererBasic; 00013 typedef struct _GTaskCellRendererBasicClass GTaskCellRendererBasicClass; 00014 typedef struct _GTaskCellRendererBasicPrivate GTaskCellRendererBasicPrivate; 00015 00017 #define GTASK_CELL_RENDERER_BASIC_TYPE (gtask_cell_renderer_basic_get_type()) 00018 00020 #define GTASK_CELL_RENDERER_BASIC(obj) (G_TYPE_CHECK_INSTANCE_CAST( (obj), \ 00021 GTASK_CELL_RENDERER_BASIC_TYPE, \ 00022 GTaskCellRendererBasic )) 00023 00025 #define GTASK_CELL_RENDERER_BASIC_CLASS(klass) \ 00026 (G_TYPE_CHECK_CLASS_CAST( (klass), \ 00027 GTASK_CELL_RENDERER_BASIC_TYPE, \ 00028 GTaskCellRendererBasicClass )) 00029 00034 #define GTASK_IS_CELL_RENDERER_BASIC(obj) (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \ 00035 GTASK_CELL_RENDERER_BASIC_TYPE )) 00036 00041 #define GTASK_IS_CELL_RENDERER_BASIC_CLASS(klass) \ 00042 (G_TYPE_CHECK_CLASS_TYPE( (klass), \ 00043 GTASK_CELL_RENDERER_BASIC_TYPE )) 00044 00045 #define GTASK_CELL_RENDERER_BASIC_GET_CLASS(obj) \ 00046 (G_TYPE_INSTANCE_GET_CLASS( (obj), \ 00047 GTASK_CELL_RENDERER_BASIC_TYPE, \ 00048 GTaskCellRendererBasicClass )) 00049 00050 00051 struct _GTaskCellRendererBasic { 00052 GtkCellRenderer parent; 00053 GTaskCellRendererBasicPrivate *private; 00054 }; 00055 00056 struct _GTaskCellRendererBasicPrivate { 00057 gfloat progress; 00058 glong time_left; 00059 char *title; 00060 char *status_msg; 00061 GTaskActivityState activity_state; 00062 00063 GdkPixbuf *preview; 00064 gboolean preview_is_thumb; 00065 GdkPixbuf *thumbnail_frame; 00066 }; 00067 00068 struct _GTaskCellRendererBasicClass { 00069 GtkCellRendererClass parent; 00070 }; 00071 00072 GtkType gtask_cell_renderer_basic_get_type( void ); 00073 00074 GtkCellRenderer * 00075 gtask_cell_renderer_basic_new( void ); 00076 00077 /* @} */ 00078 00079 #endif