Re: Event triggering with primitives



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Catherine Dunn <cldunn MIT EDU> writes:

> I am new to GTK. I am trying to create an application with several primitives
> drawn in a drawing area. I would like certain events to occur whenever the user
> clicks on/rolls over the primitives, but I am having trouble doing this since
> the primitive functions return void not GtkWidget. I'd appreciate some advice.

You might find the Gnome Canvas better than a drawing area for this
task.  The items placed on the canvas can emit events in the same way
as widgets, making it clean and simple to implement.


Regards,
Roger

- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFCytVaVcFcaSW/uEgRAnojAKDq251aLZkfmZeEEBJY0oCwxGtpIACfXLHm
uz+EiOpaXdPkb9PODLxZtgU=
=MSch
-----END PGP SIGNATURE-----



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