forked from enlightenment/efl
elementary/elm_widget : A widget which doesn't have focus_region_get should give its width and height for correct focus_region_show.
SVN revision: 83347
This commit is contained in:
parent
741fde0abb
commit
f1a4dc385c
|
@ -952,3 +952,7 @@
|
|||
2012-01-26 ChanWook Jung (jchanwook@gmail.com)
|
||||
|
||||
* Expand elm_transit tween_mode and add twee_mode_factor_set(),get() APIs
|
||||
|
||||
2012-01-26 WooHyun Jung
|
||||
|
||||
* A widget which doesn't have focus_region_get should give its width and height for correct focus_region_show.
|
||||
|
|
|
@ -3205,17 +3205,16 @@ elm_widget_focus_region_get(const Evas_Object *obj,
|
|||
Evas_Coord *w,
|
||||
Evas_Coord *h)
|
||||
{
|
||||
if (!_elm_widget_is(obj))
|
||||
ELM_WIDGET_CHECK(obj) EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
eo_do((Eo *) obj, elm_wdg_focus_region_get(x, y, w, h, &ret));
|
||||
if (!ret)
|
||||
{
|
||||
evas_object_geometry_get(obj, NULL, NULL, w, h);
|
||||
if (x) *x = 0;
|
||||
if (y) *y = 0;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
eo_do((Eo *) obj, elm_wdg_focus_region_get(x, y, w, h, &ret));
|
||||
return ret;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue