| View previous topic :: View next topic |
| Author |
Message |
Thomas
Joined: 25 Dec 2005 Posts: 6
|
Posted: Sat Mar 18, 2006 11:32 am Post subject: Call to undefined method Gdk::pixmap_create_from_xpm_d() |
|
|
| Code: | | Fatal error: Call to undefined method Gdk::pixmap_create_from_xpm_d() | got this error from an application for PHP-Gtk1 which i tried to get working on PHP-Gtk2
Is this method not implemented yet? because in the manual it is |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Sat Mar 18, 2006 11:46 am Post subject: |
|
|
This method doesn't exist in Gtk2 itself.
Loading images isn't limited to xpm files any more; you can use jpg/png/whatever now (see the GdkPixbuf and GtkImage docs).
If you want to use a message box, have a look at the GtkMessageDialog class. |
|
| Back to top |
|
 |
scott
Joined: 16 Feb 2006 Posts: 35
|
Posted: Tue Mar 21, 2006 3:44 pm Post subject: |
|
|
| GdkPixbuf::new_from_xpm_data() has been added to PHP-GTK 2. Use the latest CVS checkout if you want to use this method. |
|
| Back to top |
|
 |
|