genlist: send a disabled signal when the decorated item is unrealized.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 29 Dec 2014 12:44:07 +0000 (21:44 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 29 Dec 2014 12:44:50 +0000 (21:44 +0900)
src/lib/elm_genlist.c

index b1a27be..f85229b 100644 (file)
@@ -119,6 +119,7 @@ static const char SIGNAL_EXPANDED[] = "elm,state,expanded";
 static const char SIGNAL_CONTRACTED[] = "elm,state,contracted";
 static const char SIGNAL_FLIP_ENABLED[] = "elm,state,flip,enabled";
 static const char SIGNAL_DECORATE_ENABLED[] = "elm,state,decorate,enabled";
+static const char SIGNAL_DECORATE_DISABLED[] = "elm,state,decorate,disabled";
 static const char SIGNAL_DECORATE_ENABLED_EFFECT[] = "elm,state,decorate,enabled,effect";
 static const char SIGNAL_REORDER_ENABLED[] = "elm,state,reorder,enabled";
 static const char SIGNAL_REORDER_DISABLED[] = "elm,state,reorder,disabled";
@@ -3530,6 +3531,8 @@ _decorate_all_item_unrealize(Elm_Gen_Item *it)
                &(GL_IT(it)->deco_all_contents), &(GL_IT(it)->deco_all_states),
                &(GL_IT(it)->deco_all_content_objs));
 
+   edje_object_signal_emit(VIEW(it), SIGNAL_DECORATE_DISABLED, "elm");
+
    edje_object_message_signal_process(it->deco_all_view);
    _item_mouse_callbacks_del(it, it->deco_all_view);
    _item_mouse_callbacks_add(it, VIEW(it));