On Sat, 2008-01-05 at 22:02 +0100, Jeffrey Ratcliffe wrote: > $rectangle = $selector->get_selection > > doesn't seem to be producing sensible results. Selections in > examples/interactive.pl are nonsense, whereas the c version is OK. I > assume, therefore, that there is something wrong in > ImageToolSelector.xs: > > ## call as $rectangle = $selector->get_selection > ## void gtk_image_tool_selector_get_selection (GtkImageToolSelector > *selector, GdkRectangle *rect); > GdkRectangle_ornull *
try with: GdkRectangle_copy * instead of GtkRectangle_ornull *. > gtk_image_tool_selector_get_selection (selector) > GtkImageToolSelector * selector > PREINIT: > GdkRectangle rect; also, remember to initialise at zero, in case the function doesn't: GdkRectangle rect = { 0, }; so the rest of the bindings don't get garbage. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list