Lines 168-176
void Gtk_Image::EmbedImage(CxxFile &f,co
Link Here
|
168 |
{ f.Declaration("static const unsigned char "); |
168 |
{ f.Declaration("static const unsigned char "); |
169 |
f << Configuration.CName(pixbuf) << "_data[]"; |
169 |
f << Configuration.CName(pixbuf) << "_data[]"; |
170 |
f.Assignment().StartBlock().EndLine(); |
170 |
f.Assignment().StartBlock().EndLine(); |
171 |
{ ifstream is((Configuration.pixmap_dir+"/"+pixbuf).c_str()); |
171 |
{ std::ifstream is((Configuration.pixmap_dir+"/"+pixbuf).c_str()); |
172 |
while (is.good()) |
172 |
while (is.good()) |
173 |
{ unsigned char buf[16]; |
173 |
{ /* unsigned ... hmmm g++3.1 does not like this ... */ char buf[16]; |
174 |
is.read(buf,sizeof buf); |
174 |
is.read(buf,sizeof buf); |
175 |
size_t read=is.gcount(); |
175 |
size_t read=is.gcount(); |
176 |
f << '\t'; |
176 |
f << '\t'; |