From: Gustavo S. B. <bar...@gm...> - 2007-09-19 13:00:49
|
On 9/18/07, Caio Marcelo <cma...@gm...> wrote: > Snippet from previous conversation: > > > > > 4) etk_signal_stop() and _etk_signal_emitted_signals > > > So we could enhance ETK by having accumulator to return a boolean > > whenever it should stop or continue, then we could handle this "AND" > > case correctly and vanish with etk_signal_stop(), the source of > > problems :-P > > I've made a patch to make Etk work like that. Changed some signals to > use a marshaller for bool returning functions and used that return > value in the callbacks for the "STOP" signalling. Signals that need to > be stopped also use an accumulator called > "etk_accumulator_stopping_or", so the first one that returns ETK_TRUE, > we stop the emission. > > Accumulators now return Etk_Bool, which is the "true" way they control > if the emission stops or not, so it's possible to come up with more > elaborated rules for stopping emission if needed. > > I've changed only the signals that had callbacks using > etk_signal_stop(), but may be interesting to change more (maybe all?). Looks fine and implements exactly the initial idea that we've discussed with Moom. May I commit it? PS: It would be good to have an account for Caio. -- Gustavo Sverzut Barbieri -------------------------------------- Jabber: bar...@gm... MSN: bar...@gm... ICQ#: 17249123 Skype: gsbarbieri Mobile: +55 (81) 9927 0010 |