X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftaskbar%2Ftaskbar.h;h=72f0cca5134f76f179c216693b774fb2bfc2d45c;hb=275fa7c8678c39a1c1f7437de12aac0144f61a85;hp=8407819114a996f94907636c2a0aff00bf5ade72;hpb=63bbffa4af17926ba2d52728883988eae402b07a;p=chaz%2Ftint2 diff --git a/src/taskbar/taskbar.h b/src/taskbar/taskbar.h index 8407819..72f0cca 100644 --- a/src/taskbar/taskbar.h +++ b/src/taskbar/taskbar.h @@ -10,6 +10,7 @@ #include "task.h" +enum { TASKBAR_NORMAL, TASKBAR_ACTIVE, TASKBAR_STATE_COUNT }; extern GHashTable* win_to_task_table; extern Task *task_active; extern Task *task_drag; @@ -21,10 +22,10 @@ typedef struct { Area area; int desktop; + int current_state; + Pixmap state_pix[TASKBAR_STATE_COUNT]; // task parameters - int task_width; - int task_modulo; int text_width; } Taskbar; @@ -32,8 +33,9 @@ typedef struct { typedef struct { //always start with area Area area; - Background* bg; - Background* bg_active; + Background* background[TASKBAR_STATE_COUNT]; + //Background* bg; + //Background* bg_active; } Global_taskbar; @@ -46,12 +48,14 @@ void cleanup_taskbar(); void init_taskbar(); void init_taskbar_panel(void *p); +void draw_taskbar (void *obj, cairo_t *c); void taskbar_remove_task(gpointer key, gpointer value, gpointer user_data); Task *task_get_task (Window win); GPtrArray* task_get_tasks(Window win); void task_refresh_tasklist (); int resize_taskbar(void *obj); +void set_taskbar_state(Taskbar *tskbar, int state); // show/hide taskbar according to current desktop void visible_taskbar(void *p);