98c3cbe874
git-svn-id: http://tint2.googlecode.com/svn/trunk@562 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
61 lines
1.1 KiB
C
61 lines
1.1 KiB
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;
|
|
extern Task *task_active;
|
|
extern Task *task_drag;
|
|
extern int taskbar_enabled;
|
|
|
|
// 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;
|
|
} Global_taskbar;
|
|
|
|
|
|
// default global data
|
|
void default_taskbar();
|
|
|
|
// freed memory
|
|
void cleanup_taskbar();
|
|
|
|
void init_taskbar();
|
|
void init_taskbar_panel(void *p);
|
|
|
|
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);
|
|
|
|
// show/hide taskbar according to current desktop
|
|
void visible_taskbar(void *p);
|
|
|
|
|
|
#endif
|
|
|