Re: Equivalent to gtk_drag_get_source_widget()?
- From: Paul Davis <paul linuxaudiosystems com>
- To: Chris Vine <chris cvine freeserve co uk>
- Cc: Matthias Kaeppler <matthias finitestate org>, gtkmm-list gnome org
- Subject: Re: Equivalent to gtk_drag_get_source_widget()?
- Date: Thu, 10 Nov 2005 16:55:15 -0500
On Thu, 2005-11-10 at 21:52 +0000, Chris Vine wrote:
> On Thursday 10 November 2005 21:48, Chris Vine wrote:
>
> [snip]
>
> > This is only a problem if the same widget is set to be a drag source and a
> > drag destination. Is that the case? You can check it in other ways
> > anyway, such as by reference to the data supplied by the drag_data_get()
> > signal handler (GTK+) or the signal_drag_data_get() signal or
> > on_drag_data_get() method (gtkmm).
> >
> > You might find chapter 18 of the GTK+ tutorial helpful at
> > http://www.gtk.org/tutorial/c1920.html . (It is directly translatable to
> > gtkmm).
>
> Actually on further thought I am not even sure that even if the same widget is
> set as a valid source and destination for the data in question, GDK/GTK+
> allows you to drag data to yourself. You might want to check that this is
> possible before you start worrying about it.
it absolutely does.
in fact, for the TreeView, you can *only* drag to yourself given the
default configuration of a treeview. i posted here recently about tricky
ways to workaround this.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]