Re: Gnome_canvas_item



"Florent. Devin" <Florent.Devin@lifl.fr> writes:

> I'm using drag'n drop (thanks Renaud) from a button to a canvas.
> In my canvas I've draw some image (GnomeCanvasImage).
> The problem is that GnomeCanvasImage derived from GtkObject, and not
> GtkWidget. And the GtkObject don't have drag'n drop signal...
> How can I handle drag'n drop signals ?
> Have I to handle signal for the canvas and determine where I drop ?

This is correct.  You should hook up the drag and drop signals on the
canvas widget and see which canvas item the user is trying to drag
into.  You may find the gnome_canvas_get_item_at() function useful.

  Federico




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]