Always mark object as dirty after a map_change.
authornash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 28 Mar 2010 05:40:42 +0000 (05:40 +0000)
committernash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 28 Mar 2010 05:40:42 +0000 (05:40 +0000)
Otherwise doesn't handle UV or colour changes.  It's a bit heavy handed, but
it's a lot easier.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@47526 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_map.c

index 96d249e..c922dfb 100644 (file)
@@ -263,19 +263,14 @@ evas_map_inside_get(const Evas_Map *m, Evas_Coord x, Evas_Coord y)
 
 
 /**
- * @addtogroup Evas_Object_Group_Map
- * @{
- */
-
-/**
- * Enable or disable the map that is set
+ * Enable or disable the map that is set.
  * 
  * This enables the map that is set or disables it. On enable, the object
  * geometry will be saved, and the new geometry will change (position and
  * size) to reflect the map geometry set. If none is set yet, this may be
  * an undefined geometry, unless you have already set the map with
  * evas_object_map_set(). It is suggested you first set a map with
- * evas_object_map_set() with valid useful coordinatesm then enable and
+ * evas_object_map_set() with valid useful coordinates then enable and
  * disable the map with evas_object_map_enable_set() as needed.
  * 
  * @param obj object to enable the map on
@@ -303,6 +298,9 @@ evas_object_map_enable_set(Evas_Object *obj, Eina_Bool enabled)
           }
      }
    _evas_map_calc_map_geometry(obj);
+   /* This is a bit heavy handed, but it fixes the case of same geometry, but
+    * changed colour or UV settings. */
+   evas_object_change(obj);
 }
 
 /**