Re: Fatal Error -> Gdk::pixmap_create_from_xpm_d
| From: | Steph Fox | Date: | Sat, 29 Oct 2005 14:04:10 +0000 |
| Subject: | Re: Fatal Error -> Gdk::pixmap_create_from_xpm_d | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1975@lists.php.net to get a copy of this message | ||
Hi Tabber,
It isn't deprecated, it's just not being generated. That means one of us
needs to write it manually - along with 28 other functions, according to my
build log:
======================================
Gdk Coverage
======================================
Functions : 63.8% written (67/105)
Methods : 75.7% written (252/333)
Constructors : 80.0% written (20/25)
Property accessors : 100.0% written (46/46)
We're close to having PHP-GTK 2, but we're not _that_ close to having it
100% spot-on and perfect.
- Steph
----- Original Message -----
From: "Tabber Watts" <tabber.watts@gmail.com>
To: <php-gtk-dev@lists.php.net>
Sent: Friday, October 28, 2005 10:05 PM
Subject: [PHP-GTK-DEV] Fatal Error -> Gdk::pixmap_create_from_xpm_d
In my attempt to port my current program over to the new PHP-GTK 2 and test
it on Windows I've ran into a problem with the Gdk::pixmap_create_from_xpm_d
function. When I run the simple test script below I get:
Fatal error: Call to undefined method Gdk::pixmap_create_from_xpm_d() in
g:\test\xpm.php on line 18
I've checked the current manuals and have not seen that this function has
been depreciated or any mention that these functions must be installed via a
seperate extension(s).
Mahalo for any help,
Tabber Watts
<?php
if (!class_exists('gtk')) {
die('Please load the php-gtk2 module in your php.ini' . "\r\n");
}
$xpm_timeline_red = array(
"5 5 2 1",
" c None",
". c #FF0000",
".....",
".....",
".....",
".....",
".....");
$window = &new GtkWindow();
list($pixmap, $mask) =
Gdk::pixmap_create_from_xpm_d($window->window,null,$xpm_timeline_red);
$pixmap_id = &new GtkPixmap($pixmap, $mask);
$window->show_all();
Gtk::main();
?>