Send SC_CHANGED after writing to scrap file

This commit is contained in:
Ole Loots 2013-12-29 23:16:30 +01:00
parent 4bf410a583
commit e65c91807e
2 changed files with 8 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#include <mint/osbind.h>
#include <cflib.h>
#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)

View File

@ -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;