Experimental "paste" support for text fields.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1827 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2011-09-25 08:45:48 +00:00
parent 4dc40e7784
commit afa22ae0ac
2 changed files with 64 additions and 6 deletions

View File

@@ -120,9 +120,11 @@ byte Native_filesel(byte load)
// Check if cancel
return CommDlgExtendedError();
}
#else ifndef(__linux__) // This makes no sense on X11-oriented platform. Nothing is really native there.
#warning "EXPERIMENTAL function for native fileselector not available for this platform!"
return 255; // fail !
#else
#ifndef(__linux__) // This makes no sense on X11-oriented platform. Nothing is really native there.
#warning "EXPERIMENTAL function for native fileselector not available for this platform!"
#endif
return 255; // fail !
#endif
}
@@ -1298,7 +1300,7 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
Reset_quicksearch();
// if (Native_filesel(load) != 0); // TODO : handle this
//if (Native_filesel(load) != 0); // TODO : handle this
if (context->Type == CONTEXT_MAIN_IMAGE)
window_shortcut = load?(0x100+BUTTON_LOAD):(0x100+BUTTON_SAVE);