- Changed I_GetFromClipboard() to return an FString.

SVN r1414 (trunk)
This commit is contained in:
Randy Heit 2009-02-08 03:32:27 +00:00
commit 025e36ee41
8 changed files with 32 additions and 27 deletions

View file

@ -596,7 +596,7 @@ void I_PutInClipboard (const char *str)
#endif
}
char *I_GetFromClipboard ()
FString I_GetFromClipboard ()
{
#ifndef NO_GTK
if (GtkAvailable)
@ -607,12 +607,12 @@ char *I_GetFromClipboard ()
gchar *text = gtk_clipboard_wait_for_text(clipboard);
if (text != NULL)
{
char *copy = copystring(text);
FString copy(text);
g_free(text);
return copy;
}
}
}
#endif
return NULL;
return "";
}