what I'm looking for is eliminating the most basic drag effect, i.e., when I have a text entry with some text selected in it, and I try to drag it, I get a new mouse cursor and a small box with my selection written in it being dragged with it. That is what I wish to eliminate, not the "drop" effect. I tried using the gtk_drag_source_unset for that widget, but it didn't work...
Itai. Cody - sorry for the double post. On 3/15/07, Cody Russell < [EMAIL PROTECTED]> wrote:
On Thu, 2007-03-15 at 16:57 +0000, Ross Burton wrote: > On Thu, 2007-03-15 at 11:37 -0500, Cody Russell wrote: > > On Wed, 2007-03-14 at 16:32 +0200, Itai Bar-Haim wrote: > > > Hi. > > > I was looking through the API, but I couldn't find a way to disable > > > dragging of the text. Is it possible at all? > > > > Look at the gtk_drag_???() functions. For example, to disable an entry > > from receiving text drags you would do gtk_drag_dest_unset (widget). > > There is the question of why you want to disable dragging of text. If I > was using your application and wanted to drag text but couldn't, I > wouldn't be happy. I actually had to do it the other day at work. It's sort of hard to describe.. but I had an entry over a treeview, and the entry was used basically just for searching the treeview. Dropping of text into the entry was not useful, and was ending up causing problems so I just disabled it. It was a sort of unusual situation I think, and usually there's not a good reason to disable drag-and-drop. / Cody
_______________________________________________ gtk-devel-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-devel-list
