summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-11-21 10:48:30 -0500
committerChris Michael <cp.michael@samsung.com>2018-11-21 11:25:58 -0500
commit0f00fa0777ab3fdd1a5992e693cbaff82adac6f6 (patch)
tree6e88755e785ad2445df07dc7fb517b4b8a7fb299
parent4220c9d2d462ac3e0c888e7f03f71b919d5df557 (diff)
downloadefl-0f00fa0777ab3fdd1a5992e693cbaff82adac6f6.tar.gz
elementary: Reduce EO calls by using geometry_set
This patch reduces EO calls by using evas_object_geometry_set rather than calling move & resize.
-rw-r--r--src/lib/elementary/elm_notify.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_notify.c b/src/lib/elementary/elm_notify.c
index 7acf815363..8a123d2de9 100644
--- a/src/lib/elementary/elm_notify.c
+++ b/src/lib/elementary/elm_notify.c
@@ -96,8 +96,7 @@ _notify_move_to_orientation(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_C
x = x + ((w - minw) * ax);
y = y + ((h - minh) * ay);
- evas_object_move(sd->notify, x, y);
- evas_object_resize(sd->notify, minw, minh);
+ evas_object_geometry_set(sd->notify, x, y, minw, minh);
}
static void
@@ -137,8 +136,7 @@ _sizing_eval(Evas_Object *obj)
x = 0;
y = 0;
}
- evas_object_move(obj, x, y);
- evas_object_resize(obj, w, h);
+ evas_object_geometry_set(obj, x, y, w, h);
}
EOLIAN static Efl_Ui_Theme_Apply_Result