[Lazarus] GTK2: Drag files to other applications (to the file manager, Thunar, Nautilus, etc)
Bernd
prof7bit at gmail.com
Tue Aug 21 20:59:24 CEST 2012
2012/8/21 Hans-Peter Diettrich <DrDiettrich1 at aol.com>:
> They *have* to use the platform protocols, so why should dragging files or
> other objects run through an widgetset instead of using the API directly?
Because when using GTK2 for the GUI I usually do all GUI related
things through GTK and not by accessing the native platform directly
because thats the reason something like GTK exists in the first place.
Or do you paint your windows and buttons with X11 libs when you have
LCL and GTK2?
> Didn't you complain about the complex structure of even simple controls in
> gtk2?
No I did not complain. I said "I am not a GTK2 expert". This was not a
complaint.
> Using the platform API doesn't require any widgetset specific code, no
> need for adapations to new widgetsets.
It would require platform specific code instead. How is this better?
Its even worse because then with n different widgetsets being able to
run on m different platforms I would have n*m possible combinations of
two things that are messing around in the same realm (GUI) to step on
each other's feet and go wrong.
More information about the Lazarus
mailing list