Re: [PHP-GTK] Fatal error: Call to undefined method Gdk::screen_width()
[email protected] (ronnystalker) Sat, 1 May 2010 22:09:13 -0700 (PDT)
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
Elizabeth M Smith wrote:
>
> David wrote:
>> I am getting the error "Fatal error: Call to undefined method
>>...
>> Gdk::screen_width()"
>> 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
>
Thanks for the pointer.
I was having the same problem. However the documentation (which it says was
Last updated: Sun, 02 May 2010) seems to be misleading too:
http://gtk.php.net/manual/en/gdk.functions.php
Static Gdk methods.
...
screen_height()
Returns the height of the screen in pixels.
...
I found the best answer here:
http://www.kksou.com/php-gtk2/articles/get-the-size-of-display-screen.php
--
View this message in context: http://old.nabble.com/Fatal-error%3A-Call-to-undefined-method-Gdk%3A%3Ascreen_width%28%29-tp16172387p28424872.html
Sent from the Php - GTK - General mailing list archive at Nabble.com.