Checking widtype on eapi elm_toolbar_item_label_set

SVN revision: 54335
This commit is contained in:
Bruno Dilly 2010-11-08 16:55:26 +00:00
parent 69159eff55
commit e6178d5892
1 changed files with 1 additions and 1 deletions

View File

@ -1282,7 +1282,6 @@ _item_label_set(Elm_Toolbar_Item *item, const char *label, const char *signal)
{ {
const char *s; const char *s;
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item);
if ((label) && (item->label) && (!strcmp(label, item->label))) return; if ((label) && (item->label) && (!strcmp(label, item->label))) return;
eina_stringshare_replace(&item->label, label); eina_stringshare_replace(&item->label, label);
@ -1310,6 +1309,7 @@ _item_label_set(Elm_Toolbar_Item *item, const char *label, const char *signal)
EAPI void EAPI void
elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label)
{ {
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item);
_item_label_set(item, label, "elm,state,label_set"); _item_label_set(item, label, "elm,state,label_set");
} }