From 14ebb8eecc808e58314d915a641bcb4e85be78c3 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 15 Jan 2015 17:02:20 -0500 Subject: [PATCH] remove bad comp usage in pip --- src/pip.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/pip.c b/src/pip.c index ebc4634..4b815ab 100644 --- a/src/pip.c +++ b/src/pip.c @@ -46,12 +46,10 @@ pips_edit(void) { Pip *pip; Eina_Iterator *it; - E_Comp *comp; - comp = e_comp; - if (comp->nocomp) return; + if (e_comp->nocomp) return; editing = EINA_TRUE; - ds_fade_setup(comp, pips_noedit); + ds_fade_setup(e_comp, pips_noedit); it = eina_hash_iterator_data_new(pips); EINA_ITERATOR_FOREACH(it, pip) { @@ -59,7 +57,7 @@ pips_edit(void) evas_object_pass_events_set(pip->pip, 0); } eina_iterator_free(it); - e_comp_shape_queue(comp); + e_comp_shape_queue(e_comp); } static void @@ -132,10 +130,9 @@ _pip_mouse_move(Pip *pip, int t EINA_UNUSED, Ecore_Event_Mouse_Move *ev) } else if (pip->move) { - E_Comp *comp = e_comp_util_evas_object_comp_get(pip->pip); evas_object_move(pip->pip, - E_CLAMP(e_comp_canvas_x_root_adjust(e_comp, ev->root.x) - pip->down.x, 0, comp->man->w - (w / 2)), - E_CLAMP(e_comp_canvas_y_root_adjust(e_comp, ev->root.y) - pip->down.y, 0, comp->man->h - (h / 2))); + E_CLAMP(e_comp_canvas_x_root_adjust(e_comp, ev->root.x) - pip->down.x, 0, e_comp->man->w - (w / 2)), + E_CLAMP(e_comp_canvas_y_root_adjust(e_comp, ev->root.y) - pip->down.y, 0, e_comp->man->h - (h / 2))); } else if (pip->crop) {