elm_layout_signal_emit(data, "elm,state,active", "elm");
_entry_show(sd);
elm_entry_select_all(sd->ent);
- elm_widget_focus_set(sd->ent, 1);
+ elm_widget_focus_set(sd->ent, EINA_TRUE);
sd->entry_visible = EINA_TRUE;
}
}
EAPI void
elm_widget_focus_set(Evas_Object *obj,
- int first)
+ Eina_Bool focus)
{
ELM_WIDGET_CHECK(obj);
- eo_do(obj, elm_wdg_focus_set(first));
+ eo_do(obj, elm_wdg_focus_set(focus));
}
static void
_elm_widget_focus_set(Eo *obj, void *_pd, va_list *list)
{
- int first = va_arg(*list, int);
+ Eina_Bool focus = va_arg(*list, int);
Elm_Widget_Smart_Data *sd = _pd;
eo_do(obj, elm_wdg_on_focus(NULL));
}
- if (first)
+ if (focus)
{
if ((_is_focusable(sd->resize_obj)) &&
(!elm_widget_disabled_get(sd->resize_obj)))
{
- elm_widget_focus_set(sd->resize_obj, first);
+ elm_widget_focus_set(sd->resize_obj, focus);
}
else
{
if ((_is_focusable(child)) &&
(!elm_widget_disabled_get(child)))
{
- elm_widget_focus_set(child, first);
+ elm_widget_focus_set(child, focus);
break;
}
}
if ((_is_focusable(child)) &&
(!elm_widget_disabled_get(child)))
{
- elm_widget_focus_set(child, first);
+ elm_widget_focus_set(child, focus);
break;
}
}
EAPI Evas_Object *elm_widget_focus_next_object_get(const Evas_Object *obj, Elm_Focus_Direction dir);
EAPI void elm_widget_focus_next_object_set(Evas_Object *obj, Evas_Object *next, Elm_Focus_Direction dir);
EAPI void elm_widget_parent_highlight_set(Evas_Object *obj, Eina_Bool highlighted);
-EAPI void elm_widget_focus_set(Evas_Object *obj, int first);
+EAPI void elm_widget_focus_set(Evas_Object *obj, Eina_Bool focus);
EAPI void elm_widget_focused_object_clear(Evas_Object *obj);
EAPI Evas_Object *elm_widget_parent_get(const Evas_Object *obj);
EAPI Evas_Object *elm_widget_parent2_get(const Evas_Object *obj);
*
* No description supplied by the EAPI.
*
- * @param[in] first
+ * @param[in] focus
*
*/
-#define elm_wdg_focus_set(first) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_SET), EO_TYPECHECK(int, first)
+#define elm_wdg_focus_set(focus) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_SET), EO_TYPECHECK(Eina_Bool, focus)
/**
* @def elm_wdg_focused_object_clear