desktop name: first step
git-svn-id: http://tint2.googlecode.com/svn/trunk@596 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#define TASKBAR_H
|
||||
|
||||
#include "task.h"
|
||||
#include "taskbarname.h"
|
||||
|
||||
enum { TASKBAR_NORMAL, TASKBAR_ACTIVE, TASKBAR_STATE_COUNT };
|
||||
extern GHashTable* win_to_task_table;
|
||||
@@ -16,6 +17,16 @@ extern Task *task_active;
|
||||
extern Task *task_drag;
|
||||
extern int taskbar_enabled;
|
||||
|
||||
|
||||
typedef struct {
|
||||
// always start with area
|
||||
Area area;
|
||||
Pixmap state_pix[TASKBAR_STATE_COUNT];
|
||||
|
||||
char *name;
|
||||
int name_posy;
|
||||
} Taskbarname;
|
||||
|
||||
// tint2 use one taskbar per desktop.
|
||||
typedef struct {
|
||||
// always start with area
|
||||
@@ -24,15 +35,18 @@ typedef struct {
|
||||
int desktop;
|
||||
Pixmap state_pix[TASKBAR_STATE_COUNT];
|
||||
|
||||
Taskbarname bar_name;
|
||||
|
||||
// task parameters
|
||||
int text_width;
|
||||
} Taskbar;
|
||||
|
||||
|
||||
typedef struct {
|
||||
//always start with area
|
||||
Area area;
|
||||
Area area_name;
|
||||
Background* background[TASKBAR_STATE_COUNT];
|
||||
Background* background_name[TASKBAR_STATE_COUNT];
|
||||
} Global_taskbar;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user