| 34 | } |
| 35 | |
| 36 | void Box::PackStart( Widget::Ptr widget, bool expand, bool fill ) { |
| 37 | if( IsChild( widget ) ) { |
| 38 | return; |
| 39 | } |
| 40 | |
| 41 | // It's important to create the ChildInfo object first, so that the |
| 42 | // HandleAdd() method recognized the widget as a correctly packed one. |
| 43 | m_box_children.push_front( ChildInfo( widget, expand, fill ) ); |
| 44 | Add( widget ); |
| 45 | } |
| 46 | |
| 47 | void Box::Pack( Widget::Ptr widget, bool expand, bool fill ) { |
| 48 | PackEnd( widget, expand, fill ); |