elementary / transit - fixed a incorrect logic
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Apr 2011 11:31:03 +0000 (11:31 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Apr 2011 11:31:03 +0000 (11:31 +0000)
prevent user from calling elm_transit_del in the user del cb.

git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@58591 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_transit.c

index fe4fa4c..d6720df 100644 (file)
@@ -225,6 +225,8 @@ _elm_transit_del(Elm_Transit *transit)
    Elm_Transit_Effect_Module *effect_module;
    Elm_Transit *chain_transit;
 
+   transit->deleted = EINA_TRUE;
+
    EINA_LIST_FOREACH_SAFE(transit->next_chain_transits, elist, elist_next, chain_transit)
      {
         if (transit->prev_chain_transit)