mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-24 03:12:05 +03:00
[project @ 2004-07-11 00:22:05 by jmb]
Set filetype correctly on completion of drag svn path=/import/netsurf/; revision=1069
This commit is contained in:
parent
51457489b5
commit
02559e8cbd
@ -122,9 +122,26 @@ void ro_gui_save_drag_end(wimp_dragged *drag)
|
||||
message.data.data_xfer.pos.x = pointer.pos.x;
|
||||
message.data.data_xfer.pos.y = pointer.pos.y;
|
||||
message.data.data_xfer.est_size = 1000;
|
||||
message.data.data_xfer.file_type = 0xfaf;
|
||||
|
||||
/* set the filetype correctly */
|
||||
message.data.data_xfer.file_type = 0xfaf; /* default = html */
|
||||
if (gui_current_save_type == GUI_SAVE_DRAW)
|
||||
message.data.data_xfer.file_type = 0xaff;
|
||||
else if (gui_current_save_type == GUI_SAVE_TEXT ||
|
||||
gui_current_save_type == GUI_SAVE_LINK_TEXT)
|
||||
message.data.data_xfer.file_type = 0xfff;
|
||||
else if (gui_current_save_type == GUI_SAVE_LINK_URI)
|
||||
message.data.data_xfer.file_type = 0xf91;
|
||||
else if (gui_current_save_type == GUI_SAVE_LINK_URL)
|
||||
message.data.data_xfer.file_type = 0xb28;
|
||||
/* object as native type.
|
||||
* assume sprite here, although this isn't guaranteed
|
||||
*/
|
||||
else if (gui_current_save_type == GUI_SAVE_OBJECT_NATIVE)
|
||||
message.data.data_xfer.file_type = 0xff9;
|
||||
/* don't change the type as we've no idea what it is
|
||||
else if (gui_current_save_type == GUI_SAVE_OBJECT_ORIG)
|
||||
*/
|
||||
if (gui_current_save_type == GUI_SAVE_COMPLETE) {
|
||||
message.data.data_xfer.file_type = 0x2000;
|
||||
if (name[0] != '!') {
|
||||
|
Loading…
Reference in New Issue
Block a user