]> Dogcows Code - chaz/tint2/blobdiff - src/panel.h
merge battery applet from Sebastian Reichel
[chaz/tint2] / src / panel.h
index 3a4b6dd0a9bca6230ab98bd63a771e021becd00f..f7fc0ff66207d4306b8091a9bc24f6952b0353a7 100644 (file)
@@ -14,6 +14,7 @@
 #include <pango/pangocairo.h>
 #include <sys/time.h>
 
+#include "battery.h"
 #include "common.h"
 #include "clock.h"
 #include "task.h"
@@ -46,12 +47,14 @@ extern Task *task_drag;
 
 typedef struct {
    // always start with area
+   // area.list own all objects of the panel according to config file
    Area area;
 
    // --------------------------------------------------
    // panel
    Window main_win;
-   Pixmap root_pmap;
+   Pixmap temp_pmap;
+
    // position relative to root window
        int posx, posy;
    int marginx, marginy;
@@ -75,12 +78,10 @@ typedef struct {
    // clock
    Clock clock;
 
-   // --------------------------------------------------
-   // systray
-   Systraybar trayer;
+       // --------------------------------------------------
+       // battery
+       Battery battery;
 
-       // global taskbar parameter
-       //Area g_systraybar;
 } Panel;
 
 
@@ -90,13 +91,15 @@ extern int  nb_panel;
 
 void init_panel();
 void cleanup_panel();
-void visual_refresh(Panel *p);
+void resize_panel(void *obj);
+
 void set_panel_properties(Panel *p);
 void visible_object();
 
 // draw background panel
 void set_panel_background(Panel *p);
 
+// detect witch panel
 Panel *get_panel(Window win);
 
 #endif
This page took 0.020941 seconds and 4 git commands to generate.