Re: Fatal error: Call to undefined method Gdk::screen_width()

[email protected] (Elizabeth M Smith) Thu, 20 Mar 2008 10:57:44 -0500
Newsgroups php.gtk.general
Message-ID <[email protected]>
David wrote:
> I have the  php-gtk-2.0.0 Windows binary pack - 29-Feb-2008  installed
> with PHP 5.2.5
> 
> I am getting the error "Fatal error: Call to undefined method
> Gdk::screen_width()"
> 
> I am using code from Pro PHP-GTK by Scott Mattocks downloaded from his
> website. In any of the scripts that perform a Gdk::screen_width() I get
> the above error. I have the location of php-gtk2 in my path statement.
> 
> Please help me with this problem.
> 
> Thanks
> 
> David Hurley
> 
Unfortunately Scott's book was written for an alpha version of php-gtk2
and there have been API changes since then.  If you have more issues
like this, please check the documentation.

Thanks,
Elizabeth