[glade--]problems with Gdk::PixbufLoader

J Abelardo Gutierrez <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Message-ID <[email protected]>
Hi,
I'm trying to compile a gtkmm2 project generated with glademm2 and
having some problems.

first, making the program as generated with autogen.sh barked with the
following error:
...
window1_glade.cc: In constructor `window1_glade::window1_glade()':
window1_glade.cc:38: `PixbufLoader' undeclared in namespace `Gdk'
window1_glade.cc:38: template argument 1 is invalid
window1_glade.cc:38: ISO C++ forbids declaration of `_image1_loader'
with no type
window1_glade.cc:38: no class template named `PixbufLoader' in `Gdk'
...

I edited window1_glade.cc and added #include <gdkmm.h> that wasn't there
and fixed that problem but the next make I try barked with:
...
window1_glade.cc: In constructor `window1_glade::window1_glade()':
window1_glade.cc:40: `_data' undeclared (first use this function)
window1_glade.cc:40: (Each undeclared identifier is reported only once
for each function it appears in.)
...

and the lines n question are (39 to 40):
...
Glib::RefPtr<Gdk::PixbufLoader>_image1_loader=Gdk::PixbufLoader::create();
_image1_loader->write(_data, sizeof _data);
_image1_loader->close();
image1 = Gtk::manage(new class
Gtk::Image(_image1_loader->get_pixbuf()));
...

I, know _data is not defined anywhere, what I'm doing wrong?
is this a bug?

Thanks

-- 
Lic. J. Abelardo Gutierrez
Linux Counter # 80026

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/MU dx s-:++>-: a C+++ UL+++$ P++>+++ L+++>++++ E-- W+ N o K- w---(+)$
O+>- M? V? PS+ PE- Y+ PGP>+ t 5 X+ R+ tv+ b++ DI(+) D++
G e++ h r+++ y+++
------END GEEK CODE BLOCK------
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA/NzP69GWyPAnOsUwRAnB1AJwK0G2jpSXmma/hp5IPjCRBxZcdewCgyVYy
eB/tbUS3J92VoBxLDEX5dwU=
=imqi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.