[gnomemm] A couple Gnome::Canvas[2] issues...



Hi,

I am building an application with gtkmm2 and gnomemm2 that makes use of
libgnomecanvasmm2. I have run into a couple of issues that I have not
seen discussed on the list.

The first is that the behaviour of Canvas is different when expanding
windows in the libgnomecanvas demo and the libgnomecanvasmm demo. In the
libgnomecanvas demo, the canvas origin stays securly in the upper left
hand corner of the container that it is in. In the libgnomecanvasmm
implementation the origin of the canvas moves away from the top left
corner proportional to the window resize that is occuring.

I thought at first it was my use of the canvas causing the problem but
now that I see this in the demo I know it's not just me.

Incidently how can one determine what the current "size" of the canvas
is after someone has resized the window that contains it?

The second issue that I had has to do with subclassing gnome canvas
items. I subclassed a Group so that I could manipluate a collection of
objects on the canvas. This worked great, or so I thought. The initial
implementation added some of these items to the canvas during
construction *before* the Gtk mainloop was started. This worked fine,
all of the items that I wanted were on the canvas. When I added support
to add subclassed items to the canvas dynamically within the mainloop i
would get a segfault.

I will try and see if this problem can be reduced to a simple case (my
subclassed item was not overly simple) and report back here but I just
wanted to mention it in case someone else has seen this behavoir.

Regards,
Owen

P.S. Thanks to all who put together these fantastic libraries. Their
implemetation and quality has made me wonder why I did not give them a
try a long time ago.





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