elm_cnp: add special mime type for clipboard to distinguish clipboard selection in... 90/78890/3
authorMinchul Lee <slotus.lee@samsung.com>
Thu, 7 Jul 2016 08:33:29 +0000 (17:33 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 11 Jul 2016 06:19:13 +0000 (23:19 -0700)
Change-Id: I6803d8e664c6e967a1ad60d04473ac135eb30c63
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
src/lib/elm_cnp.c

index ebad2aee5e0925428f422d73e9c18a5374339656..3fcb5eace927695fc79a98541fbfa3fc387f72bd 100644 (file)
@@ -2485,6 +2485,13 @@ _wl_elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Form
              const char *types[10] = {0, };
              int i = -1;
 
+             // TIZEN_ONLY(20160706): To distinguish clipboard selection in cbhm
+             if (selection == ELM_SEL_TYPE_CLIPBOARD)
+               {
+                   types[++i] = "CLIPBOARD_BEGIN";
+               }
+             //
+
              if ((format & ELM_SEL_FORMAT_MARKUP) ||
                  (format & ELM_SEL_FORMAT_TEXT))
                {
@@ -2499,6 +2506,14 @@ _wl_elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Form
                   types[++i] = "text/html;charset=utf-8";
                }
 
+             // TIZEN_ONLY(20160706): To distinguish clipboard selection in cbhm
+             if (selection == ELM_SEL_TYPE_CLIPBOARD)
+               {
+                  types[++i] = "CLIPBOARD_END";
+               }
+             //
+
+
              if (i < 0) return EINA_FALSE;
 
              ecore_wl_dnd_selection_set(ecore_wl_input_get(), types);