summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-11-21 10:25:35 +0900
committerChunEon Park <hermet@hermet.pe.kr>2013-11-21 10:25:35 +0900
commit3c9059e3e4ca1cd8dd1846d2baf0ca7379b1f4a9 (patch)
tree56aed98093ba9055c3c1d78bdddade6bf6453d2e
parent46a3f014659f3097d99cdbd8d170daab7fc8885b (diff)
edje - more elaborated compare to reduce compare count.
-rw-r--r--src/lib/edje/edje_smart.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index dae9b59ae0..d4c095e3f2 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -182,26 +182,27 @@ _edje_smart_move(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
182 Edje_Real_Part *ep; 182 Edje_Real_Part *ep;
183 183
184 ep = ed->table_parts[i]; 184 ep = ed->table_parts[i];
185 if ((ep->type == EDJE_RP_TYPE_TEXT) && 185 if ((ep->type == EDJE_RP_TYPE_TEXT) && (ep->typedata.text))
186 (ep->typedata.text)) 186 {
187 evas_object_move(ep->object, 187 evas_object_move(ep->object,
188 ed->x + ep->x + ep->typedata.text->offset.x, 188 ed->x + ep->x + ep->typedata.text->offset.x,
189 ed->y + ep->y + ep->typedata.text->offset.y); 189 ed->y + ep->y + ep->typedata.text->offset.y);
190 }
190 else 191 else
191 evas_object_move(ep->object,
192 ed->x + ep->x,
193 ed->y + ep->y);
194 if (ep->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
195 _edje_entry_real_part_configure(ed, ep);
196 if ((ep->type == EDJE_RP_TYPE_SWALLOW) &&
197 (ep->typedata.swallow))
198 { 192 {
199 if (ep->typedata.swallow->swallowed_object) 193 evas_object_move(ep->object, ed->x + ep->x, ed->y + ep->y);
200 evas_object_move 194 if ((ep->type == EDJE_RP_TYPE_SWALLOW) &&
201 (ep->typedata.swallow->swallowed_object, 195 (ep->typedata.swallow))
202 ed->x + ep->x, 196 {
203 ed->y + ep->y); 197 if (ep->typedata.swallow->swallowed_object)
198 evas_object_move
199 (ep->typedata.swallow->swallowed_object,
200 ed->x + ep->x,
201 ed->y + ep->y);
202 }
204 } 203 }
204 if (ep->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
205 _edje_entry_real_part_configure(ed, ep);
205 } 206 }
206 } 207 }
207// _edje_emit(ed, "move", NULL); 208// _edje_emit(ed, "move", NULL);