Re: Dragging the text in a text entry issue
- From: Cody Russell <bratsche gnome org>
- To: Ross Burton <ross burtonini com>
- Cc: Itai Bar-Haim <itaibh gmail com>, gtk-devel-list gnome org
- Subject: Re: Dragging the text in a text entry issue
- Date: Thu, 15 Mar 2007 12:05:09 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]