]> Dogcows Code - chaz/tint2/blobdiff - src/clock/clock.h
fixed config reload SIGUSR1. added systray = 1 parameter to enable systray
[chaz/tint2] / src / clock / clock.h
index 613c40d4ed0017dcc8f6d272c96ca84367bb110b..48538b337fc7d61b6f525d27722b2bae2923cce3 100644 (file)
 
 
 typedef struct Clock {
-   // always start with area
-   Area area;
+       // always start with area
+       Area area;
 
-   config_color font;
-   int time1_posy;
-   int time2_posy;
+       config_color font;
+       int time1_posy;
+       int time2_posy;
 } Clock;
 
 
@@ -30,13 +30,21 @@ extern struct timeval time_clock;
 extern int  time_precision;
 extern PangoFontDescription *time1_font_desc;
 extern PangoFontDescription *time2_font_desc;
+extern char *clock_lclick_command;
+extern char *clock_rclick_command;
+extern int clock_enabled;
 
 
 // initialize clock : y position, precision, ...
-void init_clock(Clock *clock, Area *parent);
+void init_clock();
+void init_clock_panel(void *panel);
+void init_precision();
+void cleanup_clock();
 
-void draw_foreground_clock (void *obj, cairo_t *c, int active);
+void draw_clock (void *obj, cairo_t *c, int active);
 
 void resize_clock (void *obj);
 
+void clock_action(int button);
+
 #endif
This page took 0.020511 seconds and 4 git commands to generate.