From: Stalkern 2 Reply-To: stalkern2 at tin.it To: lablgtk at kaba.or.jp Subject: Re: Problem in using an image as DnD source Date: Thu, 29 Jan 2004 13:49:46 +0100 References: <200401091307.00138.stalkern2 at tin.it> <200401281802.05642.stalkern2 at tin.it> <16408.53364.104057.599426 at akasha.ijm.jussieu.fr> In-Reply-To: <16408.53364.104057.599426 at akasha.ijm.jussieu.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401291349.46732.stalkern2 at tin.it> Il Thursday 29 January 2004 10:20, Olivier Andrieu ha scritto: > Hi, > > Stalkern 2 [Wednesday 28 January 2004] : > > Il Friday 09 January 2004 13:07, Stalkern 2 ha scritto: > > > Hello to everybody and a happy new year to you all > > > (Best Widgets :-)))) > > > > > > I'm working out the Drag and Drop example in the lablgtk-2.2.0 > > > distribution, and I have apparently a little problem when using a > > > GMisc.image as DnD source, instead of a button. > > That's simply because a GtkImage cannot receive events (it has the > NO_WINDOW flag). Introducing an event box and using it as the drag > source should work. > > > Here I come: a drawing area will work instead. This seems to be a > > nice opportunity e.g. when the DnD source is a cell_renderer_pixbuf. > > Hum, I don't think so: cell renderers aren't widgets so they cannot be > DnD source/destination. Thank you for pointing that out. For what concerns dragging a row of a GTree.view: I've just made some trials and I see that the GTree.view itself can be dragged, and since the drag contents can be set with a selection callback, the result is that the content of a particular cell can be dragged, without using any extra column. Great! Ciao Ernesto