[gtkmm] Gdk::Pixbuf::create* issues



Hello list, 
using debian sarge up to date here, with this version of gtkmm

bird:/home/monnier# dpkg -l "libgtkmm*" |grep ii
ii  libgtkmm2.0-1c 2.2.11-1       C++ wrappers for GTK+ 2.0 (shared libraries)
ii  libgtkmm2.0-de 2.2.11-1       C++ wrappers for GTK+ 2.0 (development files


I have a small issue with the create methods of Gtk::Pixbuf
I have raw data in an gchar array (8 bits/channel with alpha), and loading a 
pixbuf with Gdk::Pixbuf::create_from_data does not works (compiles but does 
not displays anything, with asserts outputs on the console)

To check which code was to incriminate, I replaced the create_from_data call 
by a creacte_from_file.

This does not works either, with the same assertion outputs :

 (inkscape:10808): glibmm-CRITICAL **: file wrap.cc: line 51 
(Glib::ObjectBase* <unnamed>::create_new_wrapper(GObject*)): assertion 
`wrap_func_table != 0' failed
(inkscape:10808): glibmm-WARNING **: failed to wrap type of 'GdkPixbuf'

the very weird thing, is that this code works :
	Gtk::Image*  pImage = Gtk::manage( new Gtk::Image("/home/monnier/v.png"));
while this one does not :
	Gtk::Image*  pImage = Gtk::manage( new 
Gtk::Image(Gdk::Pixbuf::create_from_file("/home/monnier/v.png")));

Any clue ?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]