X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fclock%2Fclock.h;h=b91c796dcf986159b576ca32570b86ceeb592159;hb=3083e8006371cfb4a454b8bce92a682e4bb87e50;hp=613c40d4ed0017dcc8f6d272c96ca84367bb110b;hpb=bf2fd3cf8c96d2a747ba4ea3bd8bd9b0a0d7e0e7;p=chaz%2Ftint2 diff --git a/src/clock/clock.h b/src/clock/clock.h index 613c40d..b91c796 100644 --- a/src/clock/clock.h +++ b/src/clock/clock.h @@ -15,12 +15,12 @@ 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,19 @@ 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; // 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 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