sanitize widget disabled_set flag, only jump focus when disabling focused widget

This commit is contained in:
discomfitor 2013-10-26 09:52:43 +01:00
parent 01f876ef3c
commit b11305652d
1 changed files with 3 additions and 3 deletions

View File

@ -447,9 +447,9 @@ EAPI void
e_widget_disabled_set(Evas_Object *obj, int disabled)
{
API_ENTRY return;
if (sd->disabled == disabled) return;
sd->disabled = disabled;
if (sd->focused)
if (sd->disabled == !!disabled) return;
sd->disabled = !!disabled;
if (sd->focused && sd->disabled)
{
Evas_Object *o = NULL, *parent = NULL;