There was a mismatch between GtkSearchBar being derived from GtkBin and the template claiming the parent to be GtkBox.