On Mon, Dec 29, 2014 at 10:28 PM, ChunEon Park <[email protected]> wrote:
> hermet pushed a commit to branch master. > > > http://git.enlightenment.org/core/elementary.git/commit/?id=46994913501c319d2d658cb0956b086aba648488 > > commit 46994913501c319d2d658cb0956b086aba648488 > Author: ChunEon Park <[email protected]> > Date: Mon Dec 29 22:27:28 2014 +0900 > > genlist: send an additional signal > > send flip disabled signal when it's state is switched. > --- > src/lib/elm_genlist.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c > index 9346396..df94bf9 100644 > --- a/src/lib/elm_genlist.c > +++ b/src/lib/elm_genlist.c > @@ -118,6 +118,7 @@ static const char SIGNAL_UNSELECTED[] = > "elm,state,unselected"; > 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_FLIP_DISABLED[] = "elm,state,flip,disabled"; > 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"; > @@ -7687,6 +7688,8 @@ _elm_genlist_item_flip_set(Eo *eo_it, Elm_Gen_Item > *it, Eina_Bool flip) > { > ELM_GENLIST_ITEM_CHECK_OR_RETURN(it); > > + Eina_Bool prev_flip = it->flipped; > + > flip = !!flip; > if (it->flipped == flip) return; > > @@ -7696,6 +7699,14 @@ _elm_genlist_item_flip_set(Eo *eo_it, Elm_Gen_Item > *it, Eina_Bool flip) > } > else > { > Thanks for the patch. But I don't think this comparison is needed as you already compared "it->flipped and flip" in above line. > + if (prev_flip != flip) > + { > Can you check it? Thanks. Daniel Juyung Seo (SeoZ) + edje_object_signal_emit(VIEW(it), SIGNAL_FLIP_DISABLED, > "elm"); > + if (GL_IT(it)->wsd->decorate_all_mode) > + edje_object_signal_emit(it->deco_all_view, > SIGNAL_FLIP_DISABLED, > + "elm"); > + } > + > it->flipped = flip; > _item_cache_zero(GL_IT(it)->wsd); > elm_genlist_item_update(eo_it); > > -- > > > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
