}
static void
-_btn_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
+_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
printf("Button Clicked\n");
+ elm_object_disabled_set(data, !elm_object_disabled_get(data));
}
static void
return EINA_TRUE;
}
-EOLIAN static Eina_Bool
-_efl_ui_clock_efl_ui_widget_on_disabled_update(Eo *obj, Efl_Ui_Clock_Data *sd, Eina_Bool disabled)
-{
- Clock_Field *field;
- unsigned int idx = 0;
-
- if (!efl_ui_widget_on_disabled_update(efl_super(obj, MY_CLASS), disabled))
- return EINA_FALSE;
-
- for (idx = 0; idx < EFL_UI_CLOCK_TYPE_COUNT; idx++)
- {
- field = sd->field_list + idx;
- elm_object_disabled_set(field->item_obj, disabled);
- }
- return EINA_TRUE;
-}
-
EOLIAN static void
_efl_ui_clock_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Clock_Data *sd)
{
implements {
Efl.Object.constructor;
Efl.Ui.Widget.theme_apply;
- Efl.Ui.Widget.on_disabled_update;
Efl.Ui.Focus.Object.on_focus_update;
Efl.Ui.L10n.translation_update;
//TIZEN_ONLY(20170807): Apply UI Mirror for Tizen 4.0 UX
efl_destructor(efl_super(eo_ctxpopup_it, ELM_CTXPOPUP_ITEM_CLASS));
}
-EOLIAN static Eina_Bool
-_elm_ctxpopup_efl_ui_widget_on_disabled_update(Eo *obj, Elm_Ctxpopup_Data *sd, Eina_Bool disabled)
-{
- if (!efl_ui_widget_on_disabled_update(efl_super(obj, MY_CLASS), disabled))
- return EINA_FALSE;
-
- if (sd->list)
- elm_object_disabled_set(sd->list, disabled);
- else if (sd->content)
- elm_object_disabled_set(sd->content, disabled);
-
- return EINA_TRUE;
-}
-
EOLIAN static void
_elm_ctxpopup_efl_canvas_group_group_add(Eo *obj, Elm_Ctxpopup_Data *priv)
{
return int_ret;
}
-EOLIAN static Eina_Bool
-_elm_fileselector_entry_efl_ui_widget_on_disabled_update(Eo *obj, Elm_Fileselector_Entry_Data *sd, Eina_Bool disabled)
-{
- if (!efl_ui_widget_on_disabled_update(efl_super(obj, MY_CLASS), disabled))
- return EINA_FALSE;
-
- elm_widget_disabled_set(sd->button, disabled);
- elm_widget_disabled_set(sd->entry, disabled);
-
- return EINA_TRUE;
-}
-
static Eina_Bool
_elm_fileselector_entry_text_set(Eo *obj, Elm_Fileselector_Entry_Data *sd, const char *part, const char *label)
{
class.constructor;
Efl.Object.constructor;
Efl.Ui.Widget.widget_parent { set; }
- Efl.Ui.Widget.on_disabled_update;
Efl.Ui.Widget.widget_sub_object_add;
Efl.Ui.L10n.translation_update;
Efl.Ui.Widget.theme_apply;
class.constructor;
Efl.Object.constructor;
Efl.Ui.Widget.theme_apply;
- Efl.Ui.Widget.on_disabled_update;
Elm.Interface.Fileselector.selected_model { get; set; }
Elm.Interface.Fileselector.folder_only { get; set; }
Elm.Interface.Fileselector.is_save { get; set; }