moo_glade_xml_get_root: fail if nothing parsed yet
parent
3d7043fce6
commit
86f4d52161
|
@ -2350,6 +2350,7 @@ GtkWidget*
|
||||||
moo_glade_xml_get_root (MooGladeXML *xml)
|
moo_glade_xml_get_root (MooGladeXML *xml)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (xml != NULL, NULL);
|
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);
|
return moo_glade_xml_get_widget (xml, xml->priv->root_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue