Re: gtk2-perl-xs viewport with null adjustments?
- From: Ross McFarland <rwmcfa1 neces com>
- To: Steven Usdansky <usdanskys rocketmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: gtk2-perl-xs viewport with null adjustments?
- Date: 28 Apr 2003 21:14:27 -0400
On Mon, 2003-04-28 at 21:01, Steven Usdansky wrote:
Is there a Gtk2::Perl equivalent of the C-statement
my_viewport = gtk_viewport_new (NULL, NULL);
The old Gtk-Perl tutorial is a bit light on the subject of viewports, the
perl-gtk-ref.pdf says that the parameters may be undef, but I can't for the
life of me figure out what to put in the parentheses, and
my $my_viewport =Gtk2::Viewport();
aborts with the message
variable is not of type Gtk2::Adjustment at ./ip_viewer.pl line 35
it's fixed in cvs now.
Gtk2::Viewport->new(undef, undef)
and
Gtk2::Viewpoint->new;
will now work.
the c documentation doesn't mention that NULL is acceptable so it wasn't
accepted. i would venture a guess that this is the case in many places.
-rm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]