forked from enlightenment/efl
Checking widtype on eapi elm_toolbar_item_label_set
SVN revision: 54335
This commit is contained in:
parent
69159eff55
commit
e6178d5892
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue