-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Nov 29, 2006 at 03:31:03PM +0100, Yann Renard wrote: > Hi people, I'm new to the list and have a question. > > I have used Gtk for a couple of weeks now in cooperation with glade > (wonderfull tools !!). I have a small problem on custom widgets [...]
> At this point, I have to chose wich of my custom > objects (drawn in the GtkDrawingArea) has been clicked. The common way > of doing that is to prepare something like a *stencil* buffer while > rendering the colors [...] Just to be sure I got you right and for the benefit of others who might have better ideas: you render all of your objects on one drawing area and would like to know which ones of them have been hit by the click event, right? If you don't mind pulling in the whole gorilla (pun intended ;) there is the GnomeCanvas widget, which probably offers all the functionality you are trying to implement plus some more. It has a nice interface too (imo). There have been attempts to port GnomeCanvas to GTK[1], but they seem dormant at the moment (but it may fulfill your need or furnish you with some inspiration). I for one wouldn't mind seeing the Canvas in GTK, but I won't complain, since I'm not putting time in it... - ---------------- [1] <http://freshmeat.net/projects/gtkcanvas/> [2] <http://www.atai.org/gtk-canvas/> Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFbsDZBcgs9XrR2kYRAioMAJ4zsqE3P4sL0siMayEnXtK0e1P/4ACZAVl9 xZVQ6oepXWA+nHqA3au8Bvw= =+qrn -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list