Re: [gtkmm] Gdk::Pixbuf::create* issues
- From: Murray Cumming <murrayc murrayc com>
- To: Aubanel MONNIER <aubanel monnier wanadoo fr>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Gdk::Pixbuf::create* issues
- Date: Mon, 12 Jul 2004 11:42:57 +0200
On Sat, 2004-07-10 at 22:32 +0200, Aubanel MONNIER wrote:
> 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'
Do you have a Gtk::Main()? Is it called before you create_from_data()?
>
> 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 ?
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]