summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_notify.c')
-rw-r--r--src/lib/elementary/elm_notify.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/elementary/elm_notify.c b/src/lib/elementary/elm_notify.c
index 89f621c..77b5b98 100644
--- a/src/lib/elementary/elm_notify.c
+++ b/src/lib/elementary/elm_notify.c
@@ -237,27 +237,27 @@ _elm_notify_efl_gfx_size_set(Eo *obj, Elm_Notify_Data *sd, Evas_Coord w, Evas_Co
237 237
238 if (!sd->parent && sd->content) 238 if (!sd->parent && sd->content)
239 { 239 {
240 Evas_Coord x, y; 240 Eina_Position2D pos;
241 241
242 efl_gfx_position_get(obj, &x, &y); 242 pos = efl_gfx_position_get(obj);
243 _notify_move_to_orientation(obj, x, y, w, h); 243 _notify_move_to_orientation(obj, pos.x, pos.y, w, h);
244 } 244 }
245} 245}
246 246
247EOLIAN static void 247EOLIAN static void
248_elm_notify_efl_gfx_position_set(Eo *obj, Elm_Notify_Data *sd, Evas_Coord x, Evas_Coord y) 248_elm_notify_efl_gfx_position_set(Eo *obj, Elm_Notify_Data *sd, Eina_Position2D pos)
249{ 249{
250 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, x, y)) 250 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y))
251 return; 251 return;
252 252
253 efl_gfx_position_set(efl_super(obj, MY_CLASS), x, y); 253 efl_gfx_position_set(efl_super(obj, MY_CLASS), pos);
254 254
255 if (!sd->parent && sd->content) 255 if (!sd->parent && sd->content)
256 { 256 {
257 Evas_Coord w, h; 257 Evas_Coord w, h;
258 258
259 evas_object_geometry_get(obj, NULL, NULL, &w, &h); 259 evas_object_geometry_get(obj, NULL, NULL, &w, &h);
260 _notify_move_to_orientation(obj, x, y, w, h); 260 _notify_move_to_orientation(obj, pos.x, pos.y, w, h);
261 } 261 }
262} 262}
263 263