Gnome canvas pixels_per_unit error?



Hi folks,

I've got a little app that packs lots of GtkWidgets into a Gnome
canvas.  It works fine, except when I try to "zoom" in and out as per
the test code.  All my GnomeCanvasItems zoom fine.  But my GtkWidgets
don't.

This is odd, since I see the button widget in canvas_primatives() works
fine.

This is my callback, just as in the aforementioned example:

void
zoom_changed (GtkAdjustment *adj, gpointer data)
{
 gtk_canvas_set_pixels_per_unit (data, adj->value);
}

Any suggestions?

Thanks,

DT
--
Technical Director - Virginia Center for Computer Music
http://www.virginia.edu/music/vccm.html





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