Simplier check for disabled state.

SVN revision: 42022
This commit is contained in:
Christopher Michael 2009-08-26 16:52:53 +00:00
parent 91dcee72db
commit 158f95cd37
1 changed files with 1 additions and 2 deletions

View File

@ -645,8 +645,7 @@ EAPI void
elm_widget_disabled_set(Evas_Object *obj, int disabled)
{
API_ENTRY return;
if (((sd->disabled) && (disabled)) ||
((!sd->disabled) && (!disabled))) return;
if (sd->disabled == disabled) return;
sd->disabled = disabled;
if (sd->focused)
{