It does not work when 'Paste' 31/226231/1
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 24 Feb 2020 06:17:42 +0000 (15:17 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 28 Feb 2020 05:42:47 +0000 (14:42 +0900)
We must call EventNotifier so that PasteText() in Controller::PasteClipboardItemEvent() can run.

Change-Id: I1d8ad85596d1a6929a1fdc74ea909ad83eac06cd

dali/internal/clipboard/tizen-wayland/clipboard-impl-ecore-wl.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 8721844..f3a1bb3
@@ -17,6 +17,7 @@
 
 // CLASS HEADER
 #include <dali/internal/clipboard/common/clipboard-impl.h>
+#include <dali/devel-api/adaptor-framework/clipboard-event-notifier.h>
 
 // EXTERNAL INCLUDES
 #include <dali/internal/system/linux/dali-ecore.h>
@@ -127,6 +128,13 @@ struct Clipboard::Impl
     types[++i] = "text/plain;charset=utf-8";
     ecore_wl_dnd_selection_get(ecore_wl_input_get(), *types);
 #endif
+
+    Dali::ClipboardEventNotifier clipboardEventNotifier(Dali::ClipboardEventNotifier::Get());
+    if ( clipboardEventNotifier )
+    {
+      clipboardEventNotifier.SetContent( mSendBuffer );
+      clipboardEventNotifier.EmitContentSelectedSignal();
+    }
   }
 
   char *ExcuteSend( void *event )