From: 김지훈 Date: Tue, 2 Mar 2010 08:17:13 +0000 (+0000) Subject: From: 김지훈 X-Git-Tag: v1.0.0~4767 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16599107dd37ce964a86ab40c2073de34bec8611;p=platform%2Fupstream%2Felementary.git From: 김지훈 Subject: elc_scrolled_entry.c patch for adding callback elm_scrolled_entry is consists of a scroller and entry, but it does not trasmit the below signals: - cursor,changed - anchor,clicked - selection,start - selection,changed - selection,cleared - selection,paste - selection,copy - selection,cut - longpressed SVN revision: 46780 --- diff --git a/src/lib/elc_scrolled_entry.c b/src/lib/elc_scrolled_entry.c index 1ad4b69..bdeb88c 100644 --- a/src/lib/elc_scrolled_entry.c +++ b/src/lib/elc_scrolled_entry.c @@ -76,6 +76,60 @@ _entry_clicked_double(void *data, Evas_Object *obj, void *event_info) evas_object_smart_callback_call(data, "clicked,double", NULL); } +static void +_entry_cursor_changed(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "cursor,changed", NULL); +} + +static void +_entry_anchor_clicked(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "anchor,clicked", NULL); +} + +static void +_entry_selection_start(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "selection,start", NULL); +} + +static void +_entry_selection_changed(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "selection,changed", NULL); +} + +static void +_entry_selection_cleared(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "selection,cleared", NULL); +} + +static void +_entry_selection_paste(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "selection,paste", NULL); +} + +static void +_entry_selection_copy(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "selection,copy", NULL); +} + +static void +_entry_selection_cut(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "selection,cut", NULL); +} + +static void +_entry_longpressed(void *data, Evas_Object *obj, void *event_info) +{ + evas_object_smart_callback_call(data, "longpressed", NULL); +} + EAPI Evas_Object * elm_scrolled_entry_add(Evas_Object *parent) { @@ -108,6 +162,15 @@ elm_scrolled_entry_add(Evas_Object *parent) evas_object_smart_callback_add(wd->entry, "press", _entry_press, obj); evas_object_smart_callback_add(wd->entry, "clicked", _entry_clicked, obj); evas_object_smart_callback_add(wd->entry, "clicked,double", _entry_clicked_double, obj); + evas_object_smart_callback_add(wd->entry, "cursor,changed", _entry_cursor_changed, obj); + evas_object_smart_callback_add(wd->entry, "anchor,clicked", _entry_anchor_clicked, obj); + evas_object_smart_callback_add(wd->entry, "selection,start", _entry_selection_start, obj); + evas_object_smart_callback_add(wd->entry, "selection,changed", _entry_selection_changed, obj); + evas_object_smart_callback_add(wd->entry, "selection,cleared", _entry_selection_cleared, obj); + evas_object_smart_callback_add(wd->entry, "selection,paste", _entry_selection_paste, obj); + evas_object_smart_callback_add(wd->entry, "selection,copy", _entry_selection_copy, obj); + evas_object_smart_callback_add(wd->entry, "selection,cut", _entry_selection_cut, obj); + evas_object_smart_callback_add(wd->entry, "longpressed", _entry_longpressed, obj); _sizing_eval(obj);