Re: Canvas basics



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

Roger Leigh <rleigh whinlatter ukfsn org> writes:

I've started to cook up an example to demonstrate what I'm doing.
It's here: http://www.whinlatter.ukfsn.org/gtk/cse-0.1.1.tar.gz
Unfortunately, it crashes when constructing my canvas.  Is it not
possible to use it until it's realised, or am I so tired I'm doing
something really stupid?!  (I'm deriving a CseCanvas from GnomeCanvas,
but the segfault is in my object_init function where I call
gnome_canvas_set_scroll_region().)

This appears to be the case.  It works fine if I move the call to
after I pack it into a ScrolledWindow and show it.  Is there any way
to find out which methods can be called at which point?  What's the
best way to defer this?  I can see "map", "map-event" and "realize"
signals; which is most appropriate?


Thanks,
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.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFByhPwVcFcaSW/uEgRAhYZAKDysSx+jFVaPfVH1eNILv9AztceBQCfe3Mq
Qkxq8W+jU8nSlVYx9x0k9ls=
=VN8H
-----END PGP SIGNATURE-----



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