toolbar: fix focus highlight bug in toolbar

When getting focus_highlight geometry from toolbar, there can be a case
that no item has focus. Then, geometry of toolbar should be refered.
This commit is contained in:
WooHyun Jung 2014-07-04 11:55:21 +09:00
parent 70a33c9d11
commit 81bec79aa5
1 changed files with 3 additions and 1 deletions

View File

@ -2957,7 +2957,7 @@ _elm_toolbar_coordinates_adjust(Elm_Object_Item *it,
}
EOLIAN static void
_elm_toolbar_elm_widget_focus_highlight_geometry_get(Eo *obj EINA_UNUSED, Elm_Toolbar_Data *sd, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
_elm_toolbar_elm_widget_focus_highlight_geometry_get(Eo *obj, Elm_Toolbar_Data *sd, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
{
if (sd->focused_item)
{
@ -2966,6 +2966,8 @@ _elm_toolbar_elm_widget_focus_highlight_geometry_get(Eo *obj EINA_UNUSED, Elm_To
elm_widget_focus_highlight_focus_part_geometry_get
(VIEW(sd->focused_item), x, y, w, h);
}
else
evas_object_geometry_get(obj, x, y, w, h);
}
EAPI Evas_Object *