From: <enl...@li...> - 2001-10-20 06:20:51
|
Enlightenment CVS committal Author : raster Project : e17 Module : libs/ebits Dir : e17/libs/ebits/src Modified Files: ebits_main.c Log Message: if the bit is decoration... dont even accept events. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ebits/src/ebits_main.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- ebits_main.c 2001/10/13 19:05:20 1.21 +++ ebits_main.c 2001/10/20 06:20:50 1.22 @@ -876,11 +876,13 @@ bit->normal.image = malloc(strlen(file) + 1); strcpy(bit->normal.image, file); state->object = evas_add_image_from_file(o->state.evas, _ebits_get_file(state->description, state->state)); - evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_DOWN, _ebits_handle_mouse_down, state); - evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_UP, _ebits_handle_mouse_up, state); - evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_MOVE, _ebits_handle_mouse_move, state); - evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_IN, _ebits_handle_mouse_in, state); - evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_OUT, _ebits_handle_mouse_out, state); + { + evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_DOWN, _ebits_handle_mouse_down, state); + evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_UP, _ebits_handle_mouse_up, state); + evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_MOVE, _ebits_handle_mouse_move, state); + evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_IN, _ebits_handle_mouse_in, state); + evas_callback_add(o->state.evas, state->object, CALLBACK_MOUSE_OUT, _ebits_handle_mouse_out, state); + } if ((o->state.evas) && (state->object)) evas_set_color(o->state.evas, state->object, state->r, state->g, state->b, state->a); @@ -1199,11 +1201,17 @@ (!strcmp(state->description->normal.image, "-"))) { state->object = evas_add_rectangle(o->state.evas); + if ((state->description->class) && + (!strcmp(state->description->class, "Decoration"))) + evas_set_pass_events(o->state.evas, state->object, 1); evas_set_color(o->state.evas, state->object, 255, 255, 255, 0); } else { state->object = evas_add_image_from_file(o->state.evas, buf); + if ((state->description->class) && + (!strcmp(state->description->class, "Decoration"))) + evas_set_pass_events(o->state.evas, state->object, 1); } if ((state->o->state.evas) && (state->object)) evas_set_color(state->o->state.evas, state->object, |