t = eina_stringshare_add(elm_entry_entry_get(obj));
_elm_theme_object_set(obj, wd->ent, "entry", _getbase(obj), elm_widget_style_get(obj));
+ if (_elm_config->desktop_entry)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
elm_entry_entry_set(obj, t);
eina_stringshare_del(t);
if (elm_widget_disabled_get(obj))
if (wd->hoversel) evas_object_hide(wd->hoversel);
if (wd->selmode)
{
- if (!wd->password)
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
+ if (!_elm_config->desktop_entry)
+ {
+ if (!wd->password)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
+ }
}
elm_widget_scroll_freeze_pop(data);
if (wd->hovdeljob) ecore_job_del(wd->hovdeljob);
if (!wd) return;
wd->selmode = EINA_TRUE;
edje_object_part_text_select_none(wd->ent, "elm.text");
- if (!wd->password)
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
+ if (!_elm_config->desktop_entry)
+ {
+ if (!wd->password)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
+ }
edje_object_signal_emit(wd->ent, "elm,state,select,on", "elm");
- elm_widget_scroll_hold_push(data);
+ if (!_elm_config->desktop_entry)
+ elm_widget_scroll_hold_push(data);
}
static void
/* Store it */
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
+ if (!_elm_config->desktop_entry)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
- elm_widget_scroll_hold_pop(data);
+ if (!_elm_config->desktop_entry)
+ elm_widget_scroll_hold_pop(data);
_store_selection(ELM_SEL_CLIPBOARD, data);
edje_object_part_text_insert(wd->ent, "elm.text", "");
edje_object_part_text_select_none(wd->ent, "elm.text");
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
- edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
- elm_widget_scroll_hold_pop(data);
+ if (!_elm_config->desktop_entry)
+ {
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
+ edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
+ elm_widget_scroll_hold_pop(data);
+ }
_store_selection(ELM_SEL_CLIPBOARD, data);
// edje_object_part_text_select_none(wd->ent, "elm.text");
}
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
+ if (!_elm_config->desktop_entry)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
- elm_widget_scroll_hold_pop(data);
+ if (!_elm_config->desktop_entry)
+ elm_widget_scroll_hold_pop(data);
edje_object_part_text_select_none(wd->ent, "elm.text");
}
evas_object_smart_callback_add(wd->hoversel, "dismissed", _dismissed, obj);
if (!wd->selmode)
{
- if (!wd->password)
- elm_hoversel_item_add(wd->hoversel, E_("Select"), NULL, ELM_ICON_NONE,
- _select, obj);
+ if (!_elm_config->desktop_entry)
+ {
+ if (!wd->password)
+ elm_hoversel_item_add(wd->hoversel, E_("Select"), NULL, ELM_ICON_NONE,
+ _select, obj);
+ }
if (1) // need way to detect if someone has a selection
{
if (wd->editable)
evas_object_show(wd->hoversel);
elm_hoversel_hover_begin(wd->hoversel);
}
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
- edje_object_part_text_select_abort(wd->ent, "elm.text");
+ if (!_elm_config->desktop_entry)
+ {
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
+ edje_object_part_text_select_abort(wd->ent, "elm.text");
+ }
}
}
edje_object_signal_callback_add(wd->ent, "mouse,down,1,double", "elm.text",
_signal_mouse_double, obj);
edje_object_part_text_set(wd->ent, "elm.text", "");
+ if (_elm_config->desktop_entry)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
elm_widget_resize_object_set(obj, wd->ent);
_sizing_eval(obj);
if (wd->selmode)
{
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
+ if (!_elm_config->desktop_entry)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
}
wd->have_selection = EINA_FALSE;
if (wd->selmode)
{
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
+ if (!_elm_config->desktop_entry)
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
}
wd->have_selection = EINA_TRUE;
struct _Elm_Config
{
- int config_version;
- const char *engine;
- Eina_Bool thumbscroll_enable;
- int thumbscroll_threshold;
- double thumbscroll_momentum_threshold;
- double thumbscroll_friction;
- double thumbscroll_bounce_friction;
- double page_scroll_friction;
- double bring_in_scroll_friction;
- double zoom_friction;
- Eina_Bool thumbscroll_bounce_enable;
- double thumbscroll_border_friction;
- double scale;
- int bgpixmap;
- int compositing;
- Eina_List *font_dirs;
- Eina_List *font_overlays;
- int font_hinting;
- int cache_flush_poll_interval;
- Eina_Bool cache_flush_enable;
- int image_cache;
- int font_cache;
- int edje_cache;
- int edje_collection_cache;
- int finger_size;
- double fps;
- const char *theme;
- const char *modules;
- double tooltip_delay;
- Eina_Bool cursor_engine_only;
- Eina_Bool focus_highlight_enable;
- Eina_Bool focus_highlight_animate;
- int toolbar_shrink_mode;
- Eina_Bool fileselector_expand_enable;
- Eina_Bool inwin_dialogs_enable;
- int icon_size;
- double longpress_timeout;
- Eina_Bool is_mirrored : 1;
- Eina_Bool effect_enable;
+ int config_version;
+ const char *engine;
+ unsigned char thumbscroll_enable;
+ int thumbscroll_threshold;
+ double thumbscroll_momentum_threshold;
+ double thumbscroll_friction;
+ double thumbscroll_bounce_friction;
+ double page_scroll_friction;
+ double bring_in_scroll_friction;
+ double zoom_friction;
+ unsigned char thumbscroll_bounce_enable;
+ double thumbscroll_border_friction;
+ double scale;
+ int bgpixmap;
+ int compositing;
+ Eina_List *font_dirs;
+ Eina_List *font_overlays;
+ int font_hinting;
+ int cache_flush_poll_interval;
+ unsigned char cache_flush_enable;
+ int image_cache;
+ int font_cache;
+ int edje_cache;
+ int edje_collection_cache;
+ int finger_size;
+ double fps;
+ const char *theme;
+ const char *modules;
+ double tooltip_delay;
+ unsigned char cursor_engine_only;
+ unsigned char focus_highlight_enable;
+ unsigned char focus_highlight_animate;
+ int toolbar_shrink_mode;
+ unsigned char fileselector_expand_enable;
+ unsigned char inwin_dialogs_enable;
+ int icon_size;
+ double longpress_timeout;
+ unsigned char effect_enable;
+ unsigned char desktop_entry;
+
+ Eina_Bool is_mirrored : 1;
};
struct _Elm_Module