gui: when glade widget is not found, print the string id before aborting

This commit is contained in:
Nedko Arnaudov 2009-12-02 00:00:50 +02:00
parent 6b7103ead6
commit 185034b263
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ GtkWidget * get_glade_widget(const char * name)
ptr = GTK_WIDGET(glade_xml_get_widget(g_glade, name));
ASSERT(ptr != NULL);
if (ptr == NULL)
{
log_error("glade object with id '%s' not found", name);
ASSERT_NO_PASS;
}
return ptr;
}