[entry] Add callback for copy/cut context menu item click (D78 in opensource)
authorThiep Ha <thiep.ha@samsung.com>
Tue, 16 Apr 2013 06:03:32 +0000 (15:03 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 04:15:29 +0000 (13:15 +0900)
Change-Id: If9fd2a9eddbf463089c78e7b535c79e9bf54e53b

src/lib/elm_entry.c

index 3d4ce79..317b692 100644 (file)
@@ -1771,6 +1771,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)
@@ -1796,6 +1797,8 @@ _copy_cb(void *data,
 {
    ELM_ENTRY_DATA_GET(data, sd);
 
+   evas_object_smart_callback_call(data, SIG_SELECTION_COPY, NULL);
+
    // TIZEN ONLY
    //sd->sel_mode = EINA_FALSE;
    sd->sel_mode = EINA_TRUE;
@@ -2440,7 +2443,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);
 }
 
@@ -2450,7 +2452,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);
 }