Error on misbehaving Add button in GTK+

Misbehaving Add button was solved by putting (GtkWidget *) for lookup_widget where they appeared without casting.
Widget = lookup_widget(peer_widget, “btnAdd”); This is wrong
widget = (GtkWidget *) lookup_widget(peer_widget, “btnAdd”); This is correct.