From e65c91807e554737445916cfb25235b5d0a10c83 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sun, 29 Dec 2013 23:16:30 +0100 Subject: Send SC_CHANGED after writing to scrap file --- atari/clipboard.c | 8 ++++++++ atari/gui.c | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/atari/clipboard.c b/atari/clipboard.c index bcd4ee6df..254579bba 100644 --- a/atari/clipboard.c +++ b/atari/clipboard.c @@ -28,6 +28,7 @@ #include #include #include "atari/clipboard.h" +#include "atari/gemtk/gemtk.h" static int filesize(char * path) @@ -49,6 +50,13 @@ static int filesize(char * path) int scrap_txt_write(char *str) { scrap_wtxt(str); + + + // Send SC_CHANGED message: + gemtk_send_msg(SC_CHANGED, 0, 2, 0, 0, 0, 0); + + return(0); + } char *scrap_txt_read(void) diff --git a/atari/gui.c b/atari/gui.c index cf1d1b384..e52a6589c 100644 --- a/atari/gui.c +++ b/atari/gui.c @@ -767,8 +767,6 @@ void gui_set_clipboard(const char *buffer, size_t length, // convert utf8 input to atari encoding: - // TODO: send SC_CHANGED message - utf8_convert_ret ret; char *clip = NULL; -- cgit v1.2.3