Re: Event triggering with primitives

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

 



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

Catherine Dunn <cldunn@xxxxxxx> 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-----
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux