raster pushed a commit to branch master.

commit c535a06f2a6dab6b5ecbacc290218cbdfe0e1db1
Author: Thiep Ha <[email protected]>
Date:   Tue Apr 16 13:16:44 2013 +0900

    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.
---
 src/lib/elm_entry.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index aa16c4d..e9852f3 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -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);
 }
 

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to