elementary/conform - more optimal code

SVN revision: 79441
This commit is contained in:
ChunEon Park 2012-11-19 08:17:49 +00:00
parent 093da48a43
commit 2d776b49bb
1 changed files with 2 additions and 4 deletions

View File

@ -482,12 +482,10 @@ _on_rotation_changed(void *data,
if (rot == sd->rot) return;
sd->rot = rot;
old_indi = elm_layout_content_get(conformant, "elm.swallow.indicator");
old_indi = elm_layout_content_unset(conformant, "elm.swallow.indicator");
/* this means ELM_WIN_INDICATOR_SHOW never be set.we don't need to change indicator type*/
if (!old_indi) return;
if (old_indi)
evas_object_hide(elm_layout_content_unset(old_indi, "elm.swallow.indicator"));
evas_object_hide(old_indi);
if ((rot == 90) || (rot == 270) || (rot == -90) || (rot == -270))
{