moo_glade_xml_get_root: fail if nothing parsed yet

master
Yevgen Muntyan 2006-11-02 00:41:43 -06:00
parent 3d7043fce6
commit 86f4d52161
1 changed files with 1 additions and 0 deletions

View File

@ -2350,6 +2350,7 @@ GtkWidget*
moo_glade_xml_get_root (MooGladeXML *xml)
{
g_return_val_if_fail (xml != NULL, NULL);
g_return_val_if_fail (xml->priv->root_id != NULL, NULL);
return moo_glade_xml_get_widget (xml, xml->priv->root_id);
}