From a4ba91dd39bcae719fa3391a2bd9ab7c60872437 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Fri, 8 Jul 2011 07:50:36 +0000 Subject: [PATCH] elm conform: Eina_Bool parameter is added to API elm_widget_show_region_set to set the show region always. Earlier, the API expects some change, to redo the job. Patch by Prince Kumar Dubey ------- Original Message ------- Sender : PRINCE KUMAR DUBEY Date : 2011-05-20 17:41 (GMT+09:00) Title : [E-devel] [Patch] elm_conform patch Hi Mr Seo, Can you please send the attached patch of elm_conformant to EFL ope-src community. Change Log: Eina_Bool parameter is added to API elm_widget_show_region_set to set the show region always. Earlier, the API expects some change, to redo the job. This enhancement is already approved by raster in gerrit review. Thank you. Regards, Prince SVN revision: 61148 --- legacy/elementary/src/lib/elm_conform.c | 2 +- legacy/elementary/src/lib/elm_entry.c | 4 ++-- legacy/elementary/src/lib/elm_widget.c | 6 ++++-- legacy/elementary/src/lib/elm_widget.h | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/legacy/elementary/src/lib/elm_conform.c b/legacy/elementary/src/lib/elm_conform.c index 00d88649d4..ab794449f5 100644 --- a/legacy/elementary/src/lib/elm_conform.c +++ b/legacy/elementary/src/lib/elm_conform.c @@ -355,7 +355,7 @@ _content_resize_event_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj if (h < _elm_config->finger_size) h = _elm_config->finger_size; - elm_widget_show_region_set(focus_obj, x, y, w, h); + elm_widget_show_region_set(focus_obj, x, y, w, h, EINA_TRUE); } } diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c index afc2b5c458..75dfb62b9c 100644 --- a/legacy/elementary/src/lib/elm_entry.c +++ b/legacy/elementary/src/lib/elm_entry.c @@ -636,7 +636,7 @@ _recalc_cursor_geometry(Evas_Object *obj) &cx, &cy, &cw, &ch); if (wd->cur_changed) { - elm_widget_show_region_set(obj, cx, cy, cw, ch); + elm_widget_show_region_set(obj, cx, cy, cw, ch, EINA_FALSE); wd->cur_changed = EINA_FALSE; } } @@ -679,7 +679,7 @@ _elm_win_recalc_job(void *data) &cx, &cy, &cw, &ch); if (wd->cur_changed) { - elm_widget_show_region_set(data, cx, cy, cw, ch); + elm_widget_show_region_set(data, cx, cy, cw, ch, EINA_FALSE); wd->cur_changed = EINA_FALSE; } } diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c index 4acbc09d24..56aa4664d8 100644 --- a/legacy/elementary/src/lib/elm_widget.c +++ b/legacy/elementary/src/lib/elm_widget.c @@ -1833,13 +1833,15 @@ elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, - Evas_Coord h) + Evas_Coord h, + Eina_Bool forceshow) { Evas_Object *parent_obj, *child_obj; Evas_Coord px, py, cx, cy; API_ENTRY return; - if ((x == sd->rx) && (y == sd->ry) && (w == sd->rw) && (h == sd->rh)) return; + if (!forceshow && (x == sd->rx) && (y == sd->ry) + && (w == sd->rw) && (h == sd->rh)) return; sd->rx = x; sd->ry = y; sd->rw = w; diff --git a/legacy/elementary/src/lib/elm_widget.h b/legacy/elementary/src/lib/elm_widget.h index ab572374d8..9d10f37ece 100644 --- a/legacy/elementary/src/lib/elm_widget.h +++ b/legacy/elementary/src/lib/elm_widget.h @@ -272,7 +272,7 @@ EAPI void elm_widget_activate(Evas_Object *obj); EAPI void elm_widget_change(Evas_Object *obj); EAPI void elm_widget_disabled_set(Evas_Object *obj, Eina_Bool disabled); EAPI Eina_Bool elm_widget_disabled_get(const Evas_Object *obj); -EAPI void elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h); +EAPI void elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, Eina_Bool forceshow); EAPI void elm_widget_show_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); EAPI void elm_widget_focus_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); EAPI void elm_widget_scroll_hold_push(Evas_Object *obj);