- if (newSize.x == -1) newSize.x = m_bitmap.GetWidth();
- if (newSize.y == -1) newSize.y = m_bitmap.GetHeight();
- SetSize( newSize.x, newSize.y );
- }
- else
- {
- m_widget = gtk_label_new( "Bitmap" );
- }
+ if (newSize.x == -1) newSize.x = m_bitmap.GetWidth();
+ if (newSize.y == -1) newSize.y = m_bitmap.GetHeight();
+ SetSize( newSize.x, newSize.y );
+ }
+ else
+ {
+ m_widget = gtk_label_new( "Bitmap" );
+ }
+
+ m_parent->AddChild( this );
+
+ (m_parent->m_insertCallback)( m_parent, this );