2009-01-20 21:16:54 +00:00
|
|
|
/**************************************************************************
|
|
|
|
* Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
|
|
|
|
*
|
|
|
|
* systraybar
|
2009-02-25 20:04:43 +00:00
|
|
|
* based on 'docker-1.5' from Ben Jansens
|
2009-01-20 21:16:54 +00:00
|
|
|
*
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SYSTRAYBAR_H
|
|
|
|
#define SYSTRAYBAR_H
|
|
|
|
|
2009-02-28 23:04:53 +00:00
|
|
|
#include "common.h"
|
2009-01-20 21:16:54 +00:00
|
|
|
#include "area.h"
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
// always start with area
|
|
|
|
Area area;
|
|
|
|
|
2009-02-25 20:04:43 +00:00
|
|
|
GSList *list_icons;
|
2009-01-20 21:16:54 +00:00
|
|
|
} Systraybar;
|
|
|
|
|
|
|
|
|
2009-02-10 23:16:10 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2009-02-15 17:22:48 +00:00
|
|
|
Window id;
|
|
|
|
int x, y;
|
2009-02-25 20:04:43 +00:00
|
|
|
int width, height;
|
2009-02-15 17:22:48 +00:00
|
|
|
|
|
|
|
long *icon_data;
|
2009-02-10 23:16:10 +00:00
|
|
|
} TrayWindow;
|
2009-01-20 21:16:54 +00:00
|
|
|
|
|
|
|
|
2009-02-25 20:04:43 +00:00
|
|
|
extern Window net_sel_win;
|
2009-02-27 22:18:30 +00:00
|
|
|
extern Systraybar systray;
|
2009-02-25 20:04:43 +00:00
|
|
|
|
|
|
|
|
2009-02-15 17:22:48 +00:00
|
|
|
void init_systray();
|
|
|
|
void cleanup_systray();
|
2009-02-25 20:04:43 +00:00
|
|
|
int net_init();
|
|
|
|
void net_message(XClientMessageEvent *e);
|
2009-03-01 19:18:35 +00:00
|
|
|
void remove_icon(TrayWindow *traywin);
|
2009-02-10 23:16:10 +00:00
|
|
|
|
2009-02-28 23:04:53 +00:00
|
|
|
void draw_systray(void *obj, cairo_t *c, int active);
|
|
|
|
|
|
|
|
void resize_systray(void *obj);
|
2009-01-20 21:16:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|