# HG changeset patch # User Thinker K.F. Li # Date 1281002446 -28800 # Node ID cbad519226d4994550cb21cb20fb006c463bc486 # Parent fc29a343ce7cb1f8d47901ae18a1d61129ebe32d Make sh_image_t managed, and init property store for managed shapes diff -r fc29a343ce7c -r cbad519226d4 include/mb_redraw_man.h --- a/include/mb_redraw_man.h Thu Aug 05 17:43:33 2010 +0800 +++ b/include/mb_redraw_man.h Thu Aug 05 18:00:46 2010 +0800 @@ -107,6 +107,8 @@ STAILQ_INS_TAIL(rdman->shapes, shape_t, sh_next, shape); \ if(rdman->last_mouse_over == (mb_obj_t *)(shape)) \ rdman->last_mouse_over = NULL; \ + mb_prop_store_init(&((mb_obj_t *)(shape))->props, \ + (rdman)->pent_pool); \ } while(0) extern int rdman_shape_free(redraw_man_t *rdman, shape_t *shape); diff -r fc29a343ce7c -r cbad519226d4 src/shape_image.c --- a/src/shape_image.c Thu Aug 05 17:43:33 2010 +0800 +++ b/src/shape_image.c Thu Aug 05 18:00:46 2010 +0800 @@ -86,6 +86,8 @@ img->y = y; img->w = w; img->h = h; + + rdman_shape_man(rdman, (shape_t *)img); return (shape_t *)img; }