forked from enlightenment/efl
[edje] Sanely handle no-op conditions on text setting funcs (and docs++).
SVN revision: 75798
This commit is contained in:
parent
09f40167fe
commit
c0b425d2ca
|
@ -2301,6 +2301,8 @@ EAPI void edje_object_text_change_cb_set (Evas_Object *obj, Edje_Te
|
|||
* @param obj A valid Evas Object handle
|
||||
* @param part The part name
|
||||
* @param text The text string
|
||||
*
|
||||
* @return @c EINA_BOOL on success, @c EINA_FALSE otherwise
|
||||
*/
|
||||
EAPI Eina_Bool edje_object_part_text_set (Evas_Object *obj, const char *part, const char *text);
|
||||
|
||||
|
@ -2314,6 +2316,9 @@ EAPI Eina_Bool edje_object_part_text_set (Evas_Object *obj, const c
|
|||
* @param obj A valid Evas Object handle
|
||||
* @param part The part name
|
||||
* @param text The text string
|
||||
*
|
||||
* @return @c EINA_BOOL on success, @c EINA_FALSE otherwise
|
||||
*
|
||||
* @since 1.2
|
||||
*/
|
||||
EAPI Eina_Bool edje_object_part_text_escaped_set (Evas_Object *obj, const char *part, const char *text);
|
||||
|
|
|
@ -1056,10 +1056,10 @@ Eina_Bool
|
|||
_edje_object_part_text_raw_set(Evas_Object *obj, Edje_Real_Part *rp, const char *part, const char *text)
|
||||
{
|
||||
if ((!rp->text.text) && (!text))
|
||||
return EINA_FALSE;
|
||||
return EINA_TRUE; /* nothing to do, no error */
|
||||
if ((rp->text.text) && (text) &&
|
||||
(!strcmp(rp->text.text, text)))
|
||||
return EINA_FALSE;
|
||||
return EINA_TRUE; /* nothing to do, no error */
|
||||
if (rp->text.text)
|
||||
{
|
||||
eina_stringshare_del(rp->text.text);
|
||||
|
|
Loading…
Reference in New Issue