Fatal Error -> Gdk::pixmap_create_from_xpm_d
| From: | Tabber Watts | Date: | Fri, 28 Oct 2005 21:05:00 +0000 |
| Subject: | Fatal Error -> Gdk::pixmap_create_from_xpm_d | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-1974@lists.php.net to get a copy of this message | ||
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();
?>