elm: No need for two set of parentheses in a simple comparison.

Seems this got copied around. Better fix it now before it widespreads more.
This commit is contained in:
Stefan Schmidt 2013-03-22 08:42:04 +00:00
parent 5940742342
commit 9840d67f6a
3 changed files with 6 additions and 6 deletions

View File

@ -336,7 +336,7 @@ _elm_multibuttonentry_smart_on_focus(Eo *obj, void *_pd, va_list *list)
if (elm_widget_focus_get(obj))
{
// ACCESS
if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON)) goto end;
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) goto end;
if (sd->editable)
{
@ -703,7 +703,7 @@ _button_item_add(Elm_Multibuttonentry_Smart_Data *sd,
item->visible = EINA_TRUE;
// ACCESS
if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON))
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
{
const char *text;
Eina_Strbuf *buf;
@ -847,7 +847,7 @@ _elm_multibuttonentry_smart_event(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va
if (ret) *ret = EINA_FALSE;
// ACCESS
if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON)) return;
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) return;
if (ret) *ret = EINA_TRUE;
}
@ -1375,7 +1375,7 @@ _view_init(Evas_Object *obj, Elm_Multibuttonentry_Smart_Data *sd)
elm_widget_sub_object_add(obj, sd->label);
// ACCESS
if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON))
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
_access_multibuttonentry_label_register(obj, EINA_TRUE);
sd->entry = elm_entry_add(obj);

View File

@ -217,7 +217,7 @@ _elm_bubble_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
elm_layout_sizing_eval(obj);
if ((_elm_config->access_mode == ELM_ACCESS_MODE_ON))
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
elm_widget_can_focus_set(obj, EINA_TRUE);
}

View File

@ -776,7 +776,7 @@ _elm_layout_smart_content_set(Eo *obj, void *_pd, va_list *list)
EINA_LIST_FOREACH(sd->subs, l, sub_d)
{
if ((sub_d->type == SWALLOW))
if (sub_d->type == SWALLOW)
{
if (!strcmp(part, sub_d->part))
{