Re: GtkImageView
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-perl-list gnome org
- Subject: Re: GtkImageView
- Date: Sat, 05 Jan 2008 21:51:08 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]