Currently in entry, there is no callback for copy/cut context menu
item click. This patch adds callback for copy/cut context menu item click, so that application developers can add their own processing for copy/cut item click event.
This commit is contained in:
parent
3b46946a48
commit
22ff7be1b6
|
@ -1158,6 +1158,7 @@ _cut_cb(void *data,
|
|||
{
|
||||
ELM_ENTRY_DATA_GET(data, sd);
|
||||
|
||||
evas_object_smart_callback_call(data, SIG_SELECTION_CUT, NULL);
|
||||
/* Store it */
|
||||
sd->sel_mode = EINA_FALSE;
|
||||
if (!_elm_config->desktop_entry)
|
||||
|
@ -1180,6 +1181,7 @@ _copy_cb(void *data,
|
|||
{
|
||||
ELM_ENTRY_DATA_GET(data, sd);
|
||||
|
||||
evas_object_smart_callback_call(data, SIG_SELECTION_COPY, NULL);
|
||||
sd->sel_mode = EINA_FALSE;
|
||||
if (!_elm_config->desktop_entry)
|
||||
{
|
||||
|
@ -1711,7 +1713,6 @@ _entry_copy_notify_signal_cb(void *data,
|
|||
const char *emission __UNUSED__,
|
||||
const char *source __UNUSED__)
|
||||
{
|
||||
evas_object_smart_callback_call(data, SIG_SELECTION_COPY, NULL);
|
||||
_copy_cb(data, NULL, NULL);
|
||||
}
|
||||
|
||||
|
@ -1721,7 +1722,6 @@ _entry_cut_notify_signal_cb(void *data,
|
|||
const char *emission __UNUSED__,
|
||||
const char *source __UNUSED__)
|
||||
{
|
||||
evas_object_smart_callback_call(data, SIG_SELECTION_CUT, NULL);
|
||||
_cut_cb(data, NULL, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue