Maeomm Reference Documentation: hildon-libsmm |
Functions | |
Gtk::Widget* | create (Gtk::ScrolledWindow& sw, Gtk::Widget& child) |
This is a helper function to create hildon-specific scrolling methods. |
|
This is a helper function to create hildon-specific scrolling methods. A common situation where the scroll area should be used might be the following: A view containing a Gtk::TreeView-based widget, (or any similar widget which has built-in Gtk::ScrolledWindow support) and e.g. two buttons. Normally, a Gtk::ScrolledWindow can not handle the situation so that the Gtk::TreeView built-in support would work. The scroll area is connecting this built-in system to the scrolled window and also noticing the buttons. To use, one should create a box into which the buttons and the scroll area should be packed. The scroll area then contains the problematic widget, such as the Gtk::TreeView. Then the box should be placed in the Gtk::ScrolledWindow. The function currently assumes that the newly created scroll area hierarchy is not modified in anyway. If it is, it may lead to unwanted problems. It also assumes that the child widget will be packed into to the scrolled window.
|