On Wed, 12 May 2010 12:06:09 -0400, Talguy wrote: > I'm still pretty new at gtkmm and gui program and have been working with > cairo and gtk::drawingarea to do some animations. I was going through > the drawing area docs and notices some virtual functions I've never > heard of before so I was wondering if someone could explain to me what > they do. The functions in question are on_map and on_unmap. Also > accelerator keys/groups are used if I want to build short cuts into my > application i.e. ctr+w would close the current window. > <p>I'm still pretty new at gtkmm and gui program and have been > working with cairo and gtk::drawingarea to do some animations. I was > going through the drawing area docs and notices some virtual functions > I've never heard of before so I was wondering if someone could > explain to me what they do. The functions in question are on_map and > on_unmap. Also accelerator keys/groups are used if I want to build > short cuts into my application i.e. ctr+w would close the current > window.</p> _______________________________________________ gtkmm-list > mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkmm-list
on_map and on_unmap are called when the window/widget is shown/hidden. If you're doing some animation, and have some idle function, or timer function running, you can disconnect it when you get on_unmap, and connect it back, when you get on_map. _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
