Ethereal-dev: [Ethereal-dev] Implemented rudimentary Drag and Drop support.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sat, 31 Jan 2004 19:34:12 +0100
Hi List!

I've just finished the implementation of having Ethereal as a drop target for drag and drop.

On Win32 this enables the following:

Drag a file in the explorer and drop it on the Ethereal window, this will load the capture file (just as choosen by the file selection).

It will just act like the other "open file" ways:
-if an unsaved file already exists, a dialog pops up ("Do you want to save...") asking to save first
-the usual dialogs will appear, when the file could not be loaded
-the file will be added to the recent files list (if it could be loaded without errors)

If more than one file is dropped into the Ethereal window, only the first one will be tried to load!


Although I just used plain GTK mechanisms (working on win32 both GTK version 1 and 2),
it might not be working on other platforms.
Especially the string format of the dragged target filename might differ on the various platforms.


It's just working fine on my WinXP machine, please report problems on other platforms.

Regards, ULFL