edje edit - clarify src a bit better (change no logic)

This commit is contained in:
Carsten Haitzler 2014-08-13 23:48:52 +09:00
parent 3eb9e586ef
commit 6682add15d
1 changed files with 4 additions and 4 deletions

View File

@ -3801,13 +3801,13 @@ edje_edit_part_source_set(Evas_Object *obj, const char *part, const char *source
// this fall through case is intentional
case EDJE_PART_TYPE_TEXTBLOCK:
_edje_if_string_free(ed, rp->part->source);
if (source)
rp->part->source = eina_stringshare_add(source);
else
rp->part->source = NULL;
if (source) rp->part->source = eina_stringshare_add(source);
else rp->part->source = NULL;
return EINA_TRUE;
case EDJE_PART_TYPE_EXTERNAL: //EXTERNAL part has source property but it cannot be changed
break;
default:
break;
}
return EINA_FALSE;
}