im now trying the following but does not work, any ideas?
i have the following but does not work, any ideas?
Code:
bool MyWidget::on_expose_event(GdkEventExpose *event)
{
Glib::RefPtr<Gdk::Pixmap> pixmap = get_style()->get_bg_pixmap(Gtk::STATE_NORMAL);
get_window()->draw_drawable
(
get_style()->get_fg_gc(get_state()),
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
event->area.width, event->area.height
);
return false;
}