Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text.c Log Message: - fix the scrolling in the scrollpane. this maybe a hack, i'm not sure why I need to tell evas about damage... =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ewl_text.c 6 Jul 2005 13:44:39 -0000 1.8 +++ ewl_text.c 10 Jul 2005 22:13:48 -0000 1.9 @@ -183,8 +183,6 @@ ret = evas_object_textblock_char_pos_get(t->textblock, tb_idx, &tx, &ty, &tw, &th); -//printf("geometry_map %02d pos: %02d tx: %02d ty: %02d tw: %02d th: %02d\n", (int)ret, tb_idx, (int)tx, (int)ty, (int)tw, (int)th); - /* we had to add the width of the last char into the x value given * by tb in order to get stuck at the end of the text */ if (fiddled) @@ -224,7 +222,6 @@ (Evas_Coord)(y - CURRENT_Y(t)), NULL, NULL, NULL, NULL); -//printf("coord idx %d\n", tb_idx); /* if this is less then 0 then we clicked off of one end of the * textblock or the other. if the click position is inside the size * of a char we are at the start, else we are at the end */ @@ -1724,7 +1721,14 @@ { evas_object_move(t->textblock, xx, yy); evas_object_resize(t->textblock, ww, hh); - evas_object_layer_set(t->textblock, ewl_widget_layer_sum_get(w)); + evas_object_layer_set(t->textblock, + ewl_widget_layer_sum_get(w)); + + /* This needs to be here to cause the scrollpane to update + * as you scroll, tho I think Evas should be doing this + * itself behind the scenes */ + evas_damage_rectangle_add(evas_object_evas_get(t->textblock), + xx, yy, ww, hh); } DLEAVE_FUNCTION(DLEVEL_STABLE); ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs