static void _e_wid_disable_hook(Evas_Object *obj) { E_Widget_Data *wd; if (!(obj) || (!(wd = e_widget_data_get(obj)))) return; if (e_widget_disabled_get(obj)) e_entry_disable(wd->o_entry); else e_entry_enable(wd->o_entry); }
/** * Sets whether or not the entry widget is user-editable. This still * allows copying and selecting, just no inserting or deleting of text. * * @param entry an entry widget * @param readonly_mode 1 to enable read-only mode, 0 to turn it off */ EAPI void e_widget_entry_readonly_set(Evas_Object *entry, int readonly_mode) { E_Widget_Data *wd; if (!(entry) || (!(wd = e_widget_data_get(entry)))) return; if (readonly_mode) e_entry_disable(wd->o_entry); else e_entry_enable(wd->o_entry); }