Dear Falk!

• have the following member variables (m_pixbuf, m_gc, m_dim are
initialized and work properly, m_drawable and m_gdk_image are NULL ):

Glib::RefPtr<Gdk::GC> m_gc;
Glib::RefPtr<Gdk::Drawable> m_drawable;
Glib::RefPtr<Gdk::Image> m_gdk_image;
Glib::RefPtr<Gdk::Pixbuf> m_pixbuf;
rdcnnsim::Dimension m_dim;

/* rdcnnsim::Dimension
* simple class that contains width and height as integers
*/

• take the Gdk::Pixbuf of the Gtk::Image and call:

m_drawable->draw_pixbuf(m_gc,
                        m_pixbuf,
                        0,0,
                        0,0,
                        m_dim.get_width(),
                        m_dim.get_height(),
                        Gdk::RGB_DITHER_NONE,
                        0,0);

You just said that m_drawable was NULL...

At this point I am getting an extraordinary annoying segfault when
starting the application.

All the best,
Mark Roberts
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to