[gtkmm] disable clear area on expose event



Hi!  Having trouble turning off the windows background
so that when 
there's an expose event, the background will remain as
is without being 
cleared first.

According to the gtkmm docs I think this should work
but it causes an 
error on my windows xp system:

Glib::RefPtr<Gdk::Window> window = get_window();
window->set_back_pixmap(0,false);

...: no matching function for call to
    `Gdk::Window::set_back_pixmap(int, bool)'
...: candidates are:
     void Gdk::Window::set_back_pixmap(const
     Glib::RefPtr<Gdk::Pixmap>&, bool)

Trying this compiles but causes a crash:

Glib::RefPtr<Gdk::Window> window = get_window();
const Glib::RefPtr<Gdk::Pixmap> *p=0 ;
window->set_back_pixmap(*p,false);





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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