Send SC_CHANGED after writing to scrap file
This commit is contained in:
parent
4bf410a583
commit
e65c91807e
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue