<?php
/* load the glade file */
$glade = &new GladeXML("glade_file.glade");
/* grab the subcontainer */
$widget = $glade->get_widget("widgetGroup")
/* remove the widget from the parent */
$parent = $widget->parent;
$parent->remove($widget);
/* grab the new parent widget */
$window = $glade->get_widget("window");
/* add the widget to the application */
$application->widgetholder->add($widget)
?>