Using a Gdk::Pixbuf setted at compile time



I've tried this way:

	$ gdk-pixbuf-csource --raw --name=raw_image logo.png > image.h
so:

//..
#include "image.h"

Window::Window()
{
	// Glib::RefPtr<Gdk::Pixbuf>  refPixbuf;
refPixbuf->create_from_inline(-1, raw_image, false);

	// Gtk::Image image
        image.set(refPixbuf);

	add(image);
        show_all();
}

But only a empty window is showed :\
What's wrong?

Thanks,

s.



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