[glade--]problems with Gdk::PixbufLoader



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------

Attachment: signature.asc
Description: This is a digitally signed message part



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