Mouse pressed effect + some fixes for mouse over

This commit is contained in:
o9000
2015-11-04 12:19:23 +01:00
parent 34b341767c
commit 732b9d3910
12 changed files with 89 additions and 35 deletions

View File

@@ -185,11 +185,11 @@ void init_clock_panel(void *p)
clock->area.bg = &g_array_index(backgrounds, Background, 0);
clock->area.parent = p;
clock->area.panel = p;
clock->area.mouse_effects = clock_lclick_command ||
clock_mclick_command ||
clock_rclick_command ||
clock_uwheel_command ||
clock_dwheel_command;
clock->area.mouse_press_effect = clock->area.mouse_over_effect = clock_lclick_command ||
clock_mclick_command ||
clock_rclick_command ||
clock_uwheel_command ||
clock_dwheel_command;
clock->area._draw_foreground = draw_clock;
clock->area.size_mode = SIZE_BY_CONTENT;
clock->area._resize = resize_clock;