HomePhabricator

elm/check: fix emission of legacy "changed" callback

Authored by zmike on Wed, Sep 18, 9:02 AM.

Description

elm/check: fix emission of legacy "changed" callback

legacy "check" and "toggle" widgets operate differently:

  • check emits only the "toggle" event
  • toggle emits "toggle", "on", "off"

legacy also must not emit events when the widget's state is changed
programmatically

to handle this effectively, check whether the event has been emitted for
each state when the signal is emitted from the theme, and track this
for subsequent uses to ensure that exactly one event is triggered
when it should be

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9831

Marcel Hollerbach <mail@marcel-hollerbach.de> committed rEFL7767ce884abc: elm/check: fix emission of legacy "changed" callback (authored by zmike).Wed, Sep 18, 9:18 AM