tint2/src/taskbar/taskbar.h
Andreas.Fink85 c6ff59f9f7 *fix* panel_monitor = n works again, after I've broken it with revision 308
*add* convenience storage for tasks in a hash map (Window is mapped to a GPtrArray of Task*)
*fix* bugfix in resize_taskbar when task.area.width/height changes



git-svn-id: http://tint2.googlecode.com/svn/trunk@332 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-01-09 18:29:00 +00:00

47 lines
842 B
C

/**************************************************************************
* Copyright (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr)
*
* taskbar
*
**************************************************************************/
#ifndef TASKBAR_H
#define TASKBAR_H
#include "task.h"
extern GHashTable* win_to_task_table;
// tint2 use one taskbar per desktop.
typedef struct {
// always start with area
Area area;
int desktop;
// task parameters
int task_width;
int task_modulo;
int text_width;
} Taskbar;
typedef struct {
//always start with area
Area area;
Background* bg;
Background* bg_active;
int use_active;
} Global_taskbar;
void init_taskbar();
void cleanup_taskbar();
Task *task_get_task (Window win);
GPtrArray* task_get_tasks(Window win);
void task_refresh_tasklist ();
void resize_taskbar(void *obj);
#endif