Re: drag'n'drop with gtk-win32
- From: Tor Lillqvist <tml iki fi>
- To: John Emmas <johne53 tiscali co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: drag'n'drop with gtk-win32
- Date: Fri, 30 Apr 2010 15:09:41 +0300
Under Linux, the app supports dragging and dropping of certain audio files (for example, WAV files). ÂSo,
using Nautilus, the user can select a WAV file and drop it into one of several containers within the app. Â
The WAV file is then effectively imported for use in the app.
That kind of drag-and-drop, dragging files from Windows Explorer and
dropping on a GTK+ application, *does* work fine on Windows. It's
generic inter-application drag-and-drop that is not implemented. It
should work fine to just use the same code as for X11 in the
application. (Support for file dnd from Explorer is handled with a
different, much older and simpler, API than what generic drag-and-drop
would require.)
My understanding of drag'n'drop within gtk is quite limited but it seems to work by using an object of type
gtk_selection_data. ÂSo if I run my app under Windows and I drag a WAV file into the app from Windows
Explorer, the code fails.
Obviously, Windows Explorer has no knowledge of gtk_selection_data objects so for this to work,
Well, gtk_selection_data is just an API detail in GTK+; it has little
to do with the actual windowing system (X11 or Windows) concepts. The
window manager on X11, or the X server, has no knowledge of
gtk_anything either.
Before I spend too much time tracking down the problem,
Do you actually have a problem? Have you tested dragging-and-dropping
files from Explorer?
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]