X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fsystray%2Fsystraybar.h;h=dbe3fbee46671e12d6ddf12ba91362e7a086b30c;hb=ef17c3392c2af3541ea83b6f15cd7330cc2d0e07;hp=0c5e6249b2f002337ffb8f23e7c214e7d6e2f3e1;hpb=ce50a6305fd40385929dd383655292fd475d2df0;p=chaz%2Ftint2 diff --git a/src/systray/systraybar.h b/src/systray/systraybar.h index 0c5e624..dbe3fbe 100644 --- a/src/systray/systraybar.h +++ b/src/systray/systraybar.h @@ -2,12 +2,14 @@ * Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr) * * systraybar +* based on 'docker-1.5' from Ben Jansens. * **************************************************************************/ #ifndef SYSTRAYBAR_H #define SYSTRAYBAR_H +#include "common.h" #include "area.h" @@ -15,6 +17,7 @@ typedef struct { // always start with area Area area; + GSList *list_icons; } Systraybar; @@ -22,22 +25,31 @@ typedef struct { Window id; int x, y; + int width, height; - Window win; long *icon_data; - int icon_width; - int icon_height; } TrayWindow; +extern Window net_sel_win; +extern Systraybar systray; +extern int refresh_systray; + + void init_systray(); void cleanup_systray(); -int net_init(); -// return 1 if task_width changed -int resize_systray (Systraybar *sysbar); +int init_net(); +void cleanup_net(); +void net_message(XClientMessageEvent *e); + +void remove_icon(TrayWindow *traywin); + +void draw_systray(void *obj, cairo_t *c, int active); +void resize_systray(void *obj); +void refresh_systray_icon(); #endif