gnope php gtk gui gnope.org  

Call to undefined method Gdk::pixmap_create_from_xpm_d()

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
Thomas



Joined: 25 Dec 2005
Posts: 6

PostPosted: Sat Mar 18, 2006 11:32 am    Post subject: Call to undefined method Gdk::pixmap_create_from_xpm_d() Reply with quote

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

PostPosted: Sat Mar 18, 2006 11:46 am    Post subject: Reply with quote

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

PostPosted: Tue Mar 21, 2006 3:44 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.