Using a Gdk::Pixbuf setted at compile time
- From: Sergio Perticone <g4ll0ws gmail com>
- To: gtkmm mailing-list <gtkmm-list gnome org>
- Subject: Using a Gdk::Pixbuf setted at compile time
- Date: Fri, 04 May 2007 15:08:43 +0200
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]