the check theme shouldn't need to track state. emit the proper signals whenever it changes.
SVN revision: 18557
This commit is contained in:
parent
5df0d961ca
commit
ef9c5648e1
|
@ -94,8 +94,16 @@ _e_wid_do(Evas_Object *obj)
|
||||||
wd = e_widget_data_get(obj);
|
wd = e_widget_data_get(obj);
|
||||||
if (wd->valptr)
|
if (wd->valptr)
|
||||||
{
|
{
|
||||||
if (*(wd->valptr) == 0) *(wd->valptr) = 1;
|
if (*(wd->valptr) == 0)
|
||||||
else *(wd->valptr) = 0;
|
{
|
||||||
|
*(wd->valptr) = 1;
|
||||||
|
edje_object_signal_emit(wd->o_check, "toggle_on", "");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*(wd->valptr) = 0;
|
||||||
|
edje_object_signal_emit(wd->o_check, "toggle_off", "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,11 +114,6 @@ _e_wid_activate_hook(Evas_Object *obj)
|
||||||
|
|
||||||
wd = e_widget_data_get(obj);
|
wd = e_widget_data_get(obj);
|
||||||
_e_wid_do(obj);
|
_e_wid_do(obj);
|
||||||
if (wd->valptr)
|
|
||||||
{
|
|
||||||
if (*(wd->valptr)) edje_object_signal_emit(wd->o_check, "toggle_on", "");
|
|
||||||
else edje_object_signal_emit(wd->o_check, "toggle_off", "");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue